Microsoft.Web certificates 2016-03-01

Bicep resource definition

The certificates resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Web/certificates resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Web/certificates@2016-03-01' = {
  kind: 'string'
  location: 'string'
  name: 'string'
  properties: {
    hostNames: [
      'string'
    ]
    keyVaultId: 'string'
    keyVaultSecretName: 'string'
    password: 'string'
    pfxBlob: any(Azure.Bicep.Types.Concrete.AnyType)
    serverFarmId: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property values

CertificateProperties

Name Description Value
hostNames Host names the certificate applies to. string[]
keyVaultId Key Vault Csm resource Id. string
keyVaultSecretName Key Vault secret name. string
password Certificate password. string (required)
pfxBlob Pfx blob. any
serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". string

Microsoft.Web/certificates

Name Description Value
kind Kind of resource. string
location Resource Location. string (required)
name The resource name string (required)
properties Certificate resource specific properties CertificateProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

ResourceTags

Name Description Value

ARM template resource definition

The certificates resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Web/certificates resource, add the following JSON to your template.

{
  "type": "Microsoft.Web/certificates",
  "apiVersion": "2016-03-01",
  "name": "string",
  "kind": "string",
  "location": "string",
  "properties": {
    "hostNames": [ "string" ],
    "keyVaultId": "string",
    "keyVaultSecretName": "string",
    "password": "string",
    "pfxBlob": {},
    "serverFarmId": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property values

CertificateProperties

Name Description Value
hostNames Host names the certificate applies to. string[]
keyVaultId Key Vault Csm resource Id. string
keyVaultSecretName Key Vault secret name. string
password Certificate password. string (required)
pfxBlob Pfx blob. any
serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". string

Microsoft.Web/certificates

Name Description Value
apiVersion The api version '2016-03-01'
kind Kind of resource. string
location Resource Location. string (required)
name The resource name string (required)
properties Certificate resource specific properties CertificateProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.Web/certificates'

ResourceTags

Name Description Value

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a App Services Managed Certificate

Deploy to Azure
Create Managed Certificate (Free) APEX (root domain) for WebApp
Create and assign a standard App Service Certificate

Deploy to Azure
Creates a standard App Service Certificate, verifies it using an App service App and creates SSL bindings once the certificate is ready
Create and assign a wildcard App Service Certificate

Deploy to Azure
Creates a wildcard App Service Certificate, verifies it using an App service Domain and creates SSL bindings on an App Service App once the certificate is ready
SSL certificate for an ILB ASE or an ILB ASE v2

Deploy to Azure
Configures the default SSL certificate for an ILB ASE or an ILB ASE v2
Web App integration with Key Vault

Deploy to Azure
Deploy a Web App certificate from Key Vault secret and use it for creating SSL binding
Web App with a custom domain and optional SSL binding

Deploy to Azure
Create a web app and with a custom domain and optionally add SSL certificate for https encryption.

Terraform (AzAPI provider) resource definition

The certificates resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Web/certificates resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Web/certificates@2016-03-01"
  name = "string"
  kind = "string"
  location = "string"
  body = jsonencode({
    properties = {
      hostNames = [
        "string"
      ]
      keyVaultId = "string"
      keyVaultSecretName = "string"
      password = "string"
      pfxBlob = ?
      serverFarmId = "string"
    }
  })
  tags = {
    {customized property} = "string"
  }
}

Property values

CertificateProperties

Name Description Value
hostNames Host names the certificate applies to. string[]
keyVaultId Key Vault Csm resource Id. string
keyVaultSecretName Key Vault secret name. string
password Certificate password. string (required)
pfxBlob Pfx blob. any
serverFarmId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}". string

Microsoft.Web/certificates

Name Description Value
kind Kind of resource. string
location Resource Location. string (required)
name The resource name string (required)
properties Certificate resource specific properties CertificateProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.Web/certificates@2016-03-01"

ResourceTags

Name Description Value