Microsoft.Web sites/slots/hostNameBindings 2020-09-01

Template format

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

{
  "name": "string",
  "type": "Microsoft.Web/sites/slots/hostNameBindings",
  "apiVersion": "2020-09-01",
  "kind": "string",
  "systemData": {
    "createdBy": "string",
    "createdByType": "string",
    "lastModifiedAt": "string"
  },
  "properties": {
    "siteName": "string",
    "domainId": "string",
    "azureResourceName": "string",
    "azureResourceType": "string",
    "customHostNameDnsRecordType": "string",
    "hostNameType": "string",
    "sslState": "string",
    "thumbprint": "string"
  }
}

Property values

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

Microsoft.Web/sites/slots/hostNameBindings object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes Hostname in the hostname binding.
type enum Yes For JSON -hostNameBindings
-or-
Microsoft.Web/sites/slots/hostNameBindings

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2020-09-01
kind string No Kind of resource.
systemData object No The system metadata relating to this resource. - SystemData object
properties object Yes HostNameBinding resource specific properties - HostNameBindingProperties object

SystemData object

Name Type Required Value
createdBy string No The identity that created the resource.
createdByType enum No The type of identity that created the resource. - User, Application, ManagedIdentity, Key
lastModifiedAt string No The timestamp of resource last modification (UTC)

HostNameBindingProperties object

Name Type Required Value
siteName string No App Service app name.
domainId string No Fully qualified ARM domain resource URI.
azureResourceName string No Azure resource name.
azureResourceType enum No Azure resource type. - Website or TrafficManager
customHostNameDnsRecordType enum No Custom DNS record type. - CName or A
hostNameType enum No Hostname type. - Verified or Managed
sslState enum No SSL type. - Disabled, SniEnabled, IpBasedEnabled
thumbprint string No SSL certificate thumbprint