1. Packages
  2. Packages
  3. Azure Native
  4. API Docs
  5. web
  6. getSiteCertificateSlot
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.24.0
published on Wednesday, Jul 29, 2026 by Pulumi
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.
Viewing docs for Azure Native v3.24.0
published on Wednesday, Jul 29, 2026 by Pulumi

    Get a certificate for a given site and deployment slot.

    Uses Azure REST API version 2025-05-01.

    Other available API versions: 2024-11-01, 2025-03-01, 2026-03-01-preview, 2026-03-15. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native web [ApiVersion]. See the version guide for details.

    Using getSiteCertificateSlot

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSiteCertificateSlot(args: GetSiteCertificateSlotArgs, opts?: InvokeOptions): Promise<GetSiteCertificateSlotResult>
    function getSiteCertificateSlotOutput(args: GetSiteCertificateSlotOutputArgs, opts?: InvokeOptions): Output<GetSiteCertificateSlotResult>
    def get_site_certificate_slot(certificate_name: Optional[str] = None,
                                  name: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  slot: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetSiteCertificateSlotResult
    def get_site_certificate_slot_output(certificate_name: pulumi.Input[Optional[str]] = None,
                                  name: pulumi.Input[Optional[str]] = None,
                                  resource_group_name: pulumi.Input[Optional[str]] = None,
                                  slot: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetSiteCertificateSlotResult]
    func LookupSiteCertificateSlot(ctx *Context, args *LookupSiteCertificateSlotArgs, opts ...InvokeOption) (*LookupSiteCertificateSlotResult, error)
    func LookupSiteCertificateSlotOutput(ctx *Context, args *LookupSiteCertificateSlotOutputArgs, opts ...InvokeOption) LookupSiteCertificateSlotResultOutput

    > Note: This function is named LookupSiteCertificateSlot in the Go SDK.

    public static class GetSiteCertificateSlot 
    {
        public static Task<GetSiteCertificateSlotResult> InvokeAsync(GetSiteCertificateSlotArgs args, InvokeOptions? opts = null)
        public static Output<GetSiteCertificateSlotResult> Invoke(GetSiteCertificateSlotInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSiteCertificateSlotResult> getSiteCertificateSlot(GetSiteCertificateSlotArgs args, InvokeOptions options)
    public static Output<GetSiteCertificateSlotResult> getSiteCertificateSlot(GetSiteCertificateSlotArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:web:getSiteCertificateSlot
      arguments:
        # arguments dictionary
    data "azure-native_web_get_site_certificate_slot" "name" {
        # arguments
    }

    The following arguments are supported:

    CertificateName string
    Name of the certificate.
    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.
    CertificateName string
    Name of the certificate.
    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.
    certificate_name string
    Name of the certificate.
    name string
    Name of the site.
    resource_group_name 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.
    certificateName String
    Name of the certificate.
    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.
    certificateName string
    Name of the certificate.
    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.
    certificate_name str
    Name of the certificate.
    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.
    certificateName String
    Name of the certificate.
    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.

    getSiteCertificateSlot Result

    The following output properties are available:

    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
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    IssueDate string
    Certificate issue Date.
    Issuer string
    Certificate issuer.
    KeyVaultSecretStatus string
    Status of the Key Vault secret.
    Location string
    The geo-location where the resource lives
    Name string
    The name of the resource
    PublicKeyHash string
    Public key hash.
    SelfLink string
    Self link.
    SiteName string
    App name.
    SubjectName string
    Subject name of the certificate.
    SystemData Pulumi.AzureNative.Web.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Thumbprint string
    Certificate thumbprint.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Valid bool
    Is the certificate valid?.
    CanonicalName string
    CNAME of the certificate to be issued via free 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.
    Password string
    Certificate password.
    PfxBlob string
    Pfx blob.
    ServerFarmId string
    Resource ID of the associated App Service plan.
    Tags Dictionary<string, string>
    Resource tags.
    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
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    IssueDate string
    Certificate issue Date.
    Issuer string
    Certificate issuer.
    KeyVaultSecretStatus string
    Status of the Key Vault secret.
    Location string
    The geo-location where the resource lives
    Name string
    The name of the resource
    PublicKeyHash string
    Public key hash.
    SelfLink string
    Self link.
    SiteName string
    App name.
    SubjectName string
    Subject name of the certificate.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Thumbprint string
    Certificate thumbprint.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Valid bool
    Is the certificate valid?.
    CanonicalName string
    CNAME of the certificate to be issued via free 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.
    Password string
    Certificate password.
    PfxBlob string
    Pfx blob.
    ServerFarmId string
    Resource ID of the associated App Service plan.
    Tags map[string]string
    Resource tags.
    azure_api_version string
    The Azure API version of the resource.
    cer_blob string
    Raw bytes of .cer file
    expiration_date string
    Certificate expiration date.
    friendly_name string
    Friendly name of the certificate.
    hosting_environment_profile object
    Specification for the App Service Environment to use for the certificate.
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    issue_date string
    Certificate issue Date.
    issuer string
    Certificate issuer.
    key_vault_secret_status string
    Status of the Key Vault secret.
    location string
    The geo-location where the resource lives
    name string
    The name of the resource
    public_key_hash string
    Public key hash.
    self_link string
    Self link.
    site_name string
    App name.
    subject_name string
    Subject name of the certificate.
    system_data object
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    thumbprint string
    Certificate thumbprint.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    valid bool
    Is the certificate valid?.
    canonical_name string
    CNAME of the certificate to be issued via free certificate
    domain_validation_method string
    Method of domain validation for free cert
    host_names list(string)
    Host names the certificate applies to.
    key_vault_id string
    Azure Key Vault Csm resource Id.
    key_vault_secret_name 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.
    password string
    Certificate password.
    pfx_blob string
    Pfx blob.
    server_farm_id string
    Resource ID of the associated App Service plan.
    tags map(string)
    Resource tags.
    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
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    issueDate String
    Certificate issue Date.
    issuer String
    Certificate issuer.
    keyVaultSecretStatus String
    Status of the Key Vault secret.
    location String
    The geo-location where the resource lives
    name String
    The name of the resource
    publicKeyHash String
    Public key hash.
    selfLink String
    Self link.
    siteName String
    App name.
    subjectName String
    Subject name of the certificate.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    thumbprint String
    Certificate thumbprint.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    valid Boolean
    Is the certificate valid?.
    canonicalName String
    CNAME of the certificate to be issued via free 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.
    password String
    Certificate password.
    pfxBlob String
    Pfx blob.
    serverFarmId String
    Resource ID of the associated App Service plan.
    tags Map<String,String>
    Resource tags.
    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
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    issueDate string
    Certificate issue Date.
    issuer string
    Certificate issuer.
    keyVaultSecretStatus string
    Status of the Key Vault secret.
    location string
    The geo-location where the resource lives
    name string
    The name of the resource
    publicKeyHash string
    Public key hash.
    selfLink string
    Self link.
    siteName string
    App name.
    subjectName string
    Subject name of the certificate.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    thumbprint string
    Certificate thumbprint.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    valid boolean
    Is the certificate valid?.
    canonicalName string
    CNAME of the certificate to be issued via free 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.
    password string
    Certificate password.
    pfxBlob string
    Pfx blob.
    serverFarmId string
    Resource ID of the associated App Service plan.
    tags {[key: string]: string}
    Resource tags.
    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
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    issue_date str
    Certificate issue Date.
    issuer str
    Certificate issuer.
    key_vault_secret_status str
    Status of the Key Vault secret.
    location str
    The geo-location where the resource lives
    name str
    The name of the resource
    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.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    thumbprint str
    Certificate thumbprint.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    valid bool
    Is the certificate valid?.
    canonical_name str
    CNAME of the certificate to be issued via free 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.
    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.
    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
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    issueDate String
    Certificate issue Date.
    issuer String
    Certificate issuer.
    keyVaultSecretStatus String
    Status of the Key Vault secret.
    location String
    The geo-location where the resource lives
    name String
    The name of the resource
    publicKeyHash String
    Public key hash.
    selfLink String
    Self link.
    siteName String
    App name.
    subjectName String
    Subject name of the certificate.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    thumbprint String
    Certificate thumbprint.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    valid Boolean
    Is the certificate valid?.
    canonicalName String
    CNAME of the certificate to be issued via free 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.
    password String
    Certificate password.
    pfxBlob String
    Pfx blob.
    serverFarmId String
    Resource ID of the associated App Service plan.
    tags Map<String>
    Resource tags.

    Supporting Types

    HostingEnvironmentProfileResponse

    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 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.

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    created_at string
    The timestamp of resource creation (UTC).
    created_by string
    The identity that created the resource.
    created_by_type string
    The type of identity that created the resource.
    last_modified_at string
    The timestamp of resource last modification (UTC)
    last_modified_by string
    The identity that last modified the resource.
    last_modified_by_type string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    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.
    Viewing docs for Azure Native v3.24.0
    published on Wednesday, Jul 29, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial