Microsoft.Network dnsZones 2016-04-01

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": "2016-04-01",
  "tags": {},
  "location": "string",
  "properties": {
    "maxNumberOfRecordSets": "integer",
    "numberOfRecordSets": "integer"
  },
  "resources": []
}

Property values

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

Microsoft.Network/dnsZones 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 The name of the DNS zone (without a terminating dot).
type enum Yes For JSON - Microsoft.Network/dnsZones
apiVersion enum Yes For JSON - 2016-04-01
tags object No Resource tags.
location string Yes The geo-location where the resource lives
properties object Yes The properties of the zone. - ZoneProperties object
resources array No TXT SRV SOA PTR NS MX CNAME AAAA A

ZoneProperties object

Name Type Required Value
maxNumberOfRecordSets integer No The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.
numberOfRecordSets integer No The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
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.
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.