Microsoft.Web sites/publicCertificates 2019-08-01

Template format

To create a Microsoft.Web/sites/publicCertificates resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Web/sites/publicCertificates",
  "apiVersion": "2019-08-01",
  "kind": "string",
  "properties": {
    "blob": [
      "integer"
    ],
    "publicCertificateLocation": "string"
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Web/sites/publicCertificates object

Name Type Required Value
name string Yes Public certificate name.
type enum Yes publicCertificates
-or-
Microsoft.Web/sites/publicCertificates

See Set name and type for child resources.
apiVersion enum Yes 2019-08-01
kind string No Kind of resource.
properties object Yes PublicCertificate resource specific properties - PublicCertificateProperties object

PublicCertificateProperties object

Name Type Required Value
blob array No Public Certificate byte array - integer
publicCertificateLocation enum No 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