Microsoft.Network privateDnsZones/PTR template reference

Template format

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

{
  "name": "string",
  "type": "Microsoft.Network/privateDnsZones/PTR",
  "apiVersion": "2018-09-01",
  "properties": {
    "metadata": {},
    "ttl": "integer",
    "aRecords": [
      {
        "ipv4Address": "string"
      }
    ],
    "aaaaRecords": [
      {
        "ipv6Address": "string"
      }
    ],
    "cnameRecord": {
      "cname": "string"
    },
    "mxRecords": [
      {
        "preference": "integer",
        "exchange": "string"
      }
    ],
    "ptrRecords": [
      {
        "ptrdname": "string"
      }
    ],
    "soaRecord": {
      "host": "string",
      "email": "string",
      "serialNumber": "integer",
      "refreshTime": "integer",
      "retryTime": "integer",
      "expireTime": "integer",
      "minimumTtl": "integer"
    },
    "srvRecords": [
      {
        "priority": "integer",
        "weight": "integer",
        "port": "integer",
        "target": "string"
      }
    ],
    "txtRecords": [
      {
        "value": [
          "string"
        ]
      }
    ]
  }
}

Property values

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

Microsoft.Network/privateDnsZones/PTR object

Name Type Required Value
name string Yes
type enum Yes PTR
-or-
Microsoft.Network/privateDnsZones/PTR

See Set name and type for child resources.
apiVersion enum Yes 2018-09-01
properties object Yes The properties of the record set. - RecordSetProperties object

RecordSetProperties object

Name Type Required Value
metadata object No The metadata attached to the record set.
ttl integer No The TTL (time-to-live) of the records in the record set.
aRecords array No The list of A records in the record set. - ARecord object
aaaaRecords array No The list of AAAA records in the record set. - AaaaRecord object
cnameRecord object No The CNAME record in the record set. - CnameRecord object
mxRecords array No The list of MX records in the record set. - MxRecord object
ptrRecords array No The list of PTR records in the record set. - PtrRecord object
soaRecord object No The SOA record in the record set. - SoaRecord object
srvRecords array No The list of SRV records in the record set. - SrvRecord object
txtRecords array No The list of TXT records in the record set. - TxtRecord object

ARecord object

Name Type Required Value
ipv4Address string No The IPv4 address of this A record.

AaaaRecord object

Name Type Required Value
ipv6Address string No The IPv6 address of this AAAA record.

CnameRecord object

Name Type Required Value
cname string No The canonical name for this CNAME record.

MxRecord object

Name Type Required Value
preference integer No The preference value for this MX record.
exchange string No The domain name of the mail host for this MX record.

PtrRecord object

Name Type Required Value
ptrdname string No The PTR target domain name for this PTR record.

SoaRecord object

Name Type Required Value
host string No The domain name of the authoritative name server for this SOA record.
email string No The email contact for this SOA record.
serialNumber integer No The serial number for this SOA record.
refreshTime integer No The refresh value for this SOA record.
retryTime integer No The retry time for this SOA record.
expireTime integer No The expire time for this SOA record.
minimumTtl integer No The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

SrvRecord object

Name Type Required Value
priority integer No The priority value for this SRV record.
weight integer No The weight value for this SRV record.
port integer No The port value for this SRV record.
target string No The target domain name for this SRV record.

TxtRecord object

Name Type Required Value
value array No The text value of this TXT record. - string