Microsoft.Network dnsZones template reference

Template format

To create a Microsoft.Network/dnsZones resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Network/dnsZones",
  "apiVersion": "2018-05-01",
  "location": "string",
  "tags": {},
  "properties": {
    "zoneType": "string",
    "registrationVirtualNetworks": [
      {
        "id": "string"
      }
    ],
    "resolutionVirtualNetworks": [
      {
        "id": "string"
      }
    ]
  },
  "resources": []
}

Property values

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

Microsoft.Network/dnsZones object

Name Type Required Value
name string Yes The name of the DNS zone (without a terminating dot).
type enum Yes Microsoft.Network/dnsZones
apiVersion enum Yes 2018-05-01
location string Yes Resource location.
tags object No Resource tags.
properties object Yes The properties of the zone. - ZoneProperties object
resources array No TXT SRV SOA PTR NS MX CNAME CAA AAAA A

ZoneProperties object

Name Type Required Value
zoneType enum No The type of this DNS zone (Public or Private). - Public or Private
registrationVirtualNetworks array No A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private. - SubResource object
resolutionVirtualNetworks array No A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private. - SubResource object

SubResource object

Name Type Required Value
id string No Resource Id.

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Azure DNS domain hosting example

Deploy to Azure
This template shows how to create a DNS zone within Azure DNS and how to add some record sets to it.
Create a DNS Zone with the correct records for Office 365

Deploy to Azure
This template configures the records needed to integrate Azure DNS with Office 365 by adding the correct CNAME, SRV, MX, and TXT records.