1. Packages
  2. Azure Native
  3. API Docs
  4. web
  5. SiteCertificateSlot
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi

azure-native.web.SiteCertificateSlot

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi

    SSL certificate for an app.

    Uses Azure REST API version 2024-11-01.

    Example Usage

    Create Or Update Certificate for slot

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var siteCertificateSlot = new AzureNative.Web.SiteCertificateSlot("siteCertificateSlot", new()
        {
            CertificateName = "testc6282",
            HostNames = new[]
            {
                "ServerCert",
            },
            Location = "East US",
            Name = "testSiteName",
            Password = "<password>",
            ResourceGroupName = "testrg123",
            Slot = "staging",
        });
    
    });
    
    package main
    
    import (
    	web "github.com/pulumi/pulumi-azure-native-sdk/web/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := web.NewSiteCertificateSlot(ctx, "siteCertificateSlot", &web.SiteCertificateSlotArgs{
    			CertificateName: pulumi.String("testc6282"),
    			HostNames: pulumi.StringArray{
    				pulumi.String("ServerCert"),
    			},
    			Location:          pulumi.String("East US"),
    			Name:              pulumi.String("testSiteName"),
    			Password:          pulumi.String("<password>"),
    			ResourceGroupName: pulumi.String("testrg123"),
    			Slot:              pulumi.String("staging"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.web.SiteCertificateSlot;
    import com.pulumi.azurenative.web.SiteCertificateSlotArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var siteCertificateSlot = new SiteCertificateSlot("siteCertificateSlot", SiteCertificateSlotArgs.builder()
                .certificateName("testc6282")
                .hostNames("ServerCert")
                .location("East US")
                .name("testSiteName")
                .password("<password>")
                .resourceGroupName("testrg123")
                .slot("staging")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const siteCertificateSlot = new azure_native.web.SiteCertificateSlot("siteCertificateSlot", {
        certificateName: "testc6282",
        hostNames: ["ServerCert"],
        location: "East US",
        name: "testSiteName",
        password: "<password>",
        resourceGroupName: "testrg123",
        slot: "staging",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    site_certificate_slot = azure_native.web.SiteCertificateSlot("siteCertificateSlot",
        certificate_name="testc6282",
        host_names=["ServerCert"],
        location="East US",
        name="testSiteName",
        password="<password>",
        resource_group_name="testrg123",
        slot="staging")
    
    resources:
      siteCertificateSlot:
        type: azure-native:web:SiteCertificateSlot
        properties:
          certificateName: testc6282
          hostNames:
            - ServerCert
          location: East US
          name: testSiteName
          password: <password>
          resourceGroupName: testrg123
          slot: staging
    

    Create SiteCertificateSlot Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SiteCertificateSlot(name: string, args: SiteCertificateSlotArgs, opts?: CustomResourceOptions);
    @overload
    def SiteCertificateSlot(resource_name: str,
                            args: SiteCertificateSlotArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def SiteCertificateSlot(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            name: Optional[str] = None,
                            slot: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            kind: Optional[str] = None,
                            key_vault_id: Optional[str] = None,
                            key_vault_secret_name: Optional[str] = None,
                            canonical_name: Optional[str] = None,
                            location: Optional[str] = None,
                            host_names: Optional[Sequence[str]] = None,
                            password: Optional[str] = None,
                            pfx_blob: Optional[str] = None,
                            domain_validation_method: Optional[str] = None,
                            server_farm_id: Optional[str] = None,
                            certificate_name: Optional[str] = None,
                            tags: Optional[Mapping[str, str]] = None)
    func NewSiteCertificateSlot(ctx *Context, name string, args SiteCertificateSlotArgs, opts ...ResourceOption) (*SiteCertificateSlot, error)
    public SiteCertificateSlot(string name, SiteCertificateSlotArgs args, CustomResourceOptions? opts = null)
    public SiteCertificateSlot(String name, SiteCertificateSlotArgs args)
    public SiteCertificateSlot(String name, SiteCertificateSlotArgs args, CustomResourceOptions options)
    
    type: azure-native:web:SiteCertificateSlot
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SiteCertificateSlotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SiteCertificateSlotArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SiteCertificateSlotArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SiteCertificateSlotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SiteCertificateSlotArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var siteCertificateSlotResource = new AzureNative.Web.SiteCertificateSlot("siteCertificateSlotResource", new()
    {
        Name = "string",
        Slot = "string",
        ResourceGroupName = "string",
        Kind = "string",
        KeyVaultId = "string",
        KeyVaultSecretName = "string",
        CanonicalName = "string",
        Location = "string",
        HostNames = new[]
        {
            "string",
        },
        Password = "string",
        PfxBlob = "string",
        DomainValidationMethod = "string",
        ServerFarmId = "string",
        CertificateName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := web.NewSiteCertificateSlot(ctx, "siteCertificateSlotResource", &web.SiteCertificateSlotArgs{
    	Name:               pulumi.String("string"),
    	Slot:               pulumi.String("string"),
    	ResourceGroupName:  pulumi.String("string"),
    	Kind:               pulumi.String("string"),
    	KeyVaultId:         pulumi.String("string"),
    	KeyVaultSecretName: pulumi.String("string"),
    	CanonicalName:      pulumi.String("string"),
    	Location:           pulumi.String("string"),
    	HostNames: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Password:               pulumi.String("string"),
    	PfxBlob:                pulumi.String("string"),
    	DomainValidationMethod: pulumi.String("string"),
    	ServerFarmId:           pulumi.String("string"),
    	CertificateName:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var siteCertificateSlotResource = new SiteCertificateSlot("siteCertificateSlotResource", SiteCertificateSlotArgs.builder()
        .name("string")
        .slot("string")
        .resourceGroupName("string")
        .kind("string")
        .keyVaultId("string")
        .keyVaultSecretName("string")
        .canonicalName("string")
        .location("string")
        .hostNames("string")
        .password("string")
        .pfxBlob("string")
        .domainValidationMethod("string")
        .serverFarmId("string")
        .certificateName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    site_certificate_slot_resource = azure_native.web.SiteCertificateSlot("siteCertificateSlotResource",
        name="string",
        slot="string",
        resource_group_name="string",
        kind="string",
        key_vault_id="string",
        key_vault_secret_name="string",
        canonical_name="string",
        location="string",
        host_names=["string"],
        password="string",
        pfx_blob="string",
        domain_validation_method="string",
        server_farm_id="string",
        certificate_name="string",
        tags={
            "string": "string",
        })
    
    const siteCertificateSlotResource = new azure_native.web.SiteCertificateSlot("siteCertificateSlotResource", {
        name: "string",
        slot: "string",
        resourceGroupName: "string",
        kind: "string",
        keyVaultId: "string",
        keyVaultSecretName: "string",
        canonicalName: "string",
        location: "string",
        hostNames: ["string"],
        password: "string",
        pfxBlob: "string",
        domainValidationMethod: "string",
        serverFarmId: "string",
        certificateName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:web:SiteCertificateSlot
    properties:
        canonicalName: string
        certificateName: string
        domainValidationMethod: string
        hostNames:
            - string
        keyVaultId: string
        keyVaultSecretName: string
        kind: string
        location: string
        name: string
        password: string
        pfxBlob: string
        resourceGroupName: string
        serverFarmId: string
        slot: string
        tags:
            string: string
    

    SiteCertificateSlot Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SiteCertificateSlot resource accepts the following input properties:

    Name string
    Name of the site.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Slot string
    Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
    CanonicalName string
    CNAME of the certificate to be issued via free certificate
    CertificateName string
    Name of the certificate.
    DomainValidationMethod string
    Method of domain validation for free cert
    HostNames List<string>
    Host names the certificate applies to.
    KeyVaultId string
    Azure Key Vault Csm resource Id.
    KeyVaultSecretName string
    Azure Key Vault secret name.
    Kind string
    Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.
    Location string
    Resource Location.
    Password string
    Certificate password.
    PfxBlob string
    Pfx blob.
    ServerFarmId string
    Resource ID of the associated App Service plan.
    Tags Dictionary<string, string>
    Resource tags.
    Name string
    Name of the site.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Slot string
    Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
    CanonicalName string
    CNAME of the certificate to be issued via free certificate
    CertificateName string
    Name of the certificate.
    DomainValidationMethod string
    Method of domain validation for free cert
    HostNames []string
    Host names the certificate applies to.
    KeyVaultId string
    Azure Key Vault Csm resource Id.
    KeyVaultSecretName string
    Azure Key Vault secret name.
    Kind string
    Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.
    Location string
    Resource Location.
    Password string
    Certificate password.
    PfxBlob string
    Pfx blob.
    ServerFarmId string
    Resource ID of the associated App Service plan.
    Tags map[string]string
    Resource tags.
    name String
    Name of the site.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    slot String
    Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
    canonicalName String
    CNAME of the certificate to be issued via free certificate
    certificateName String
    Name of the certificate.
    domainValidationMethod String
    Method of domain validation for free cert
    hostNames List<String>
    Host names the certificate applies to.
    keyVaultId String
    Azure Key Vault Csm resource Id.
    keyVaultSecretName String
    Azure Key Vault secret name.
    kind String
    Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.
    location String
    Resource Location.
    password String
    Certificate password.
    pfxBlob String
    Pfx blob.
    serverFarmId String
    Resource ID of the associated App Service plan.
    tags Map<String,String>
    Resource tags.
    name string
    Name of the site.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    slot string
    Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
    canonicalName string
    CNAME of the certificate to be issued via free certificate
    certificateName string
    Name of the certificate.
    domainValidationMethod string
    Method of domain validation for free cert
    hostNames string[]
    Host names the certificate applies to.
    keyVaultId string
    Azure Key Vault Csm resource Id.
    keyVaultSecretName string
    Azure Key Vault secret name.
    kind string
    Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.
    location string
    Resource Location.
    password string
    Certificate password.
    pfxBlob string
    Pfx blob.
    serverFarmId string
    Resource ID of the associated App Service plan.
    tags {[key: string]: string}
    Resource tags.
    name str
    Name of the site.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    slot str
    Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
    canonical_name str
    CNAME of the certificate to be issued via free certificate
    certificate_name str
    Name of the certificate.
    domain_validation_method str
    Method of domain validation for free cert
    host_names Sequence[str]
    Host names the certificate applies to.
    key_vault_id str
    Azure Key Vault Csm resource Id.
    key_vault_secret_name str
    Azure Key Vault secret name.
    kind str
    Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.
    location str
    Resource Location.
    password str
    Certificate password.
    pfx_blob str
    Pfx blob.
    server_farm_id str
    Resource ID of the associated App Service plan.
    tags Mapping[str, str]
    Resource tags.
    name String
    Name of the site.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    slot String
    Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot.
    canonicalName String
    CNAME of the certificate to be issued via free certificate
    certificateName String
    Name of the certificate.
    domainValidationMethod String
    Method of domain validation for free cert
    hostNames List<String>
    Host names the certificate applies to.
    keyVaultId String
    Azure Key Vault Csm resource Id.
    keyVaultSecretName String
    Azure Key Vault secret name.
    kind String
    Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind.
    location String
    Resource Location.
    password String
    Certificate password.
    pfxBlob String
    Pfx blob.
    serverFarmId String
    Resource ID of the associated App Service plan.
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SiteCertificateSlot resource produces the following output properties:

    AzureApiVersion string
    The Azure API version of the resource.
    CerBlob string
    Raw bytes of .cer file
    ExpirationDate string
    Certificate expiration date.
    FriendlyName string
    Friendly name of the certificate.
    HostingEnvironmentProfile Pulumi.AzureNative.Web.Outputs.HostingEnvironmentProfileResponse
    Specification for the App Service Environment to use for the certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    IssueDate string
    Certificate issue Date.
    Issuer string
    Certificate issuer.
    KeyVaultSecretStatus string
    Status of the Key Vault secret.
    PublicKeyHash string
    Public key hash.
    SelfLink string
    Self link.
    SiteName string
    App name.
    SubjectName string
    Subject name of the certificate.
    Thumbprint string
    Certificate thumbprint.
    Type string
    Resource type.
    Valid bool
    Is the certificate valid?.
    AzureApiVersion string
    The Azure API version of the resource.
    CerBlob string
    Raw bytes of .cer file
    ExpirationDate string
    Certificate expiration date.
    FriendlyName string
    Friendly name of the certificate.
    HostingEnvironmentProfile HostingEnvironmentProfileResponse
    Specification for the App Service Environment to use for the certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    IssueDate string
    Certificate issue Date.
    Issuer string
    Certificate issuer.
    KeyVaultSecretStatus string
    Status of the Key Vault secret.
    PublicKeyHash string
    Public key hash.
    SelfLink string
    Self link.
    SiteName string
    App name.
    SubjectName string
    Subject name of the certificate.
    Thumbprint string
    Certificate thumbprint.
    Type string
    Resource type.
    Valid bool
    Is the certificate valid?.
    azureApiVersion String
    The Azure API version of the resource.
    cerBlob String
    Raw bytes of .cer file
    expirationDate String
    Certificate expiration date.
    friendlyName String
    Friendly name of the certificate.
    hostingEnvironmentProfile HostingEnvironmentProfileResponse
    Specification for the App Service Environment to use for the certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    issueDate String
    Certificate issue Date.
    issuer String
    Certificate issuer.
    keyVaultSecretStatus String
    Status of the Key Vault secret.
    publicKeyHash String
    Public key hash.
    selfLink String
    Self link.
    siteName String
    App name.
    subjectName String
    Subject name of the certificate.
    thumbprint String
    Certificate thumbprint.
    type String
    Resource type.
    valid Boolean
    Is the certificate valid?.
    azureApiVersion string
    The Azure API version of the resource.
    cerBlob string
    Raw bytes of .cer file
    expirationDate string
    Certificate expiration date.
    friendlyName string
    Friendly name of the certificate.
    hostingEnvironmentProfile HostingEnvironmentProfileResponse
    Specification for the App Service Environment to use for the certificate.
    id string
    The provider-assigned unique ID for this managed resource.
    issueDate string
    Certificate issue Date.
    issuer string
    Certificate issuer.
    keyVaultSecretStatus string
    Status of the Key Vault secret.
    publicKeyHash string
    Public key hash.
    selfLink string
    Self link.
    siteName string
    App name.
    subjectName string
    Subject name of the certificate.
    thumbprint string
    Certificate thumbprint.
    type string
    Resource type.
    valid boolean
    Is the certificate valid?.
    azure_api_version str
    The Azure API version of the resource.
    cer_blob str
    Raw bytes of .cer file
    expiration_date str
    Certificate expiration date.
    friendly_name str
    Friendly name of the certificate.
    hosting_environment_profile HostingEnvironmentProfileResponse
    Specification for the App Service Environment to use for the certificate.
    id str
    The provider-assigned unique ID for this managed resource.
    issue_date str
    Certificate issue Date.
    issuer str
    Certificate issuer.
    key_vault_secret_status str
    Status of the Key Vault secret.
    public_key_hash str
    Public key hash.
    self_link str
    Self link.
    site_name str
    App name.
    subject_name str
    Subject name of the certificate.
    thumbprint str
    Certificate thumbprint.
    type str
    Resource type.
    valid bool
    Is the certificate valid?.
    azureApiVersion String
    The Azure API version of the resource.
    cerBlob String
    Raw bytes of .cer file
    expirationDate String
    Certificate expiration date.
    friendlyName String
    Friendly name of the certificate.
    hostingEnvironmentProfile Property Map
    Specification for the App Service Environment to use for the certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    issueDate String
    Certificate issue Date.
    issuer String
    Certificate issuer.
    keyVaultSecretStatus String
    Status of the Key Vault secret.
    publicKeyHash String
    Public key hash.
    selfLink String
    Self link.
    siteName String
    App name.
    subjectName String
    Subject name of the certificate.
    thumbprint String
    Certificate thumbprint.
    type String
    Resource type.
    valid Boolean
    Is the certificate valid?.

    Supporting Types

    HostingEnvironmentProfileResponse, HostingEnvironmentProfileResponseArgs

    Name string
    Name of the App Service Environment.
    Type string
    Resource type of the App Service Environment.
    Id string
    Resource ID of the App Service Environment.
    Name string
    Name of the App Service Environment.
    Type string
    Resource type of the App Service Environment.
    Id string
    Resource ID of the App Service Environment.
    name String
    Name of the App Service Environment.
    type String
    Resource type of the App Service Environment.
    id String
    Resource ID of the App Service Environment.
    name string
    Name of the App Service Environment.
    type string
    Resource type of the App Service Environment.
    id string
    Resource ID of the App Service Environment.
    name str
    Name of the App Service Environment.
    type str
    Resource type of the App Service Environment.
    id str
    Resource ID of the App Service Environment.
    name String
    Name of the App Service Environment.
    type String
    Resource type of the App Service Environment.
    id String
    Resource ID of the App Service Environment.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:web:SiteCertificateSlot testc6282 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/certificates/{certificateName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.7.1 published on Wednesday, Aug 13, 2025 by Pulumi