Microsoft.Web sites/publicCertificates

The sites/publicCertificates resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Web/sites/publicCertificates resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Web/sites/publicCertificates@2021-02-01' = {
  name: 'string'
  kind: 'string'
  parent: parentSymbolicName
  properties: {
    blob: any()
    publicCertificateLocation: 'string'
  }
}

Property values

sites/publicCertificates

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Web/sites/publicCertificates'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2021-02-01'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
kind Kind of resource. string
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
parentSymbolicName
properties PublicCertificate resource specific properties PublicCertificateProperties

PublicCertificateProperties

Name Description Value
blob Public Certificate byte array For Bicep, you can use the any() function.
publicCertificateLocation Public Certificate Location 'CurrentUserMy'
'LocalMachineMy'
'Unknown'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Install Public Certificate in App Service

Deploy to Azure
Install a Public Certificate in App Service. Once a public certificate is installed by deploying this template, it would be accessible to App Service code for consumption. This is supported only on dedicated App Service Plans. If your App Service is hosted on a public scale unit then you can only install certificates in CurrentUser-Personal certificate store. For App Service Environments, LocalMachine-Personal certificate store is also supported