Skip to main content
Providers

DnsZone

A resource of the Azure provider, version 0.3.0, in its DNS group. Import it with:

import DnsZone from "azure/dns"

Example

resource DnsZone example {
    name                          = "example-value"
    resourceGroup                 = "example-value"
    zoneType                      = "Public"
    registrationVirtualNetworkIds = "..."
    resolutionVirtualNetworkIds   = "..."
    tags                          = "..."
}

Properties

Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.

NameTypeDefaultRequiredDescription
namestring—NoThe domain name for the DNS zone. Must be a fully qualified domain name (e.g., example.com)
resourceGroupstring—NoThe resource group name
zoneTypestring"Public"NoThe type of DNS zone Allowed: "Public", "Private"
registrationVirtualNetworkIdsany[]—NoVirtual network IDs for auto-registration (private zones only). VMs in these networks will have their DNS records auto-registered
resolutionVirtualNetworkIdsany[]—NoVirtual network IDs for resolution (private zones only). VMs in these networks can resolve records in this zone
tagsobject—NoTags to apply to the DNS zone

Set by Azure after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.

NameTypeImportableDescription
idstringYesThe resource ID of the DNS zone
nameServersany[]NoThe name servers for the DNS zone
numberOfRecordSetsnumberNoThe number of record sets in the DNS zone
maxNumberOfRecordSetsnumberNoThe maximum number of record sets allowed
etagstringNoThe ETag of the DNS zone

On this page