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.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | — | No | The domain name for the DNS zone. Must be a fully qualified domain name (e.g., example.com) |
resourceGroup | string | — | No | The resource group name |
zoneType | string | "Public" | No | The type of DNS zone Allowed: "Public", "Private" |
registrationVirtualNetworkIds | any[] | — | No | Virtual network IDs for auto-registration (private zones only). VMs in these networks will have their DNS records auto-registered |
resolutionVirtualNetworkIds | any[] | — | No | Virtual network IDs for resolution (private zones only). VMs in these networks can resolve records in this zone |
tags | object | — | No | Tags 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.
| Name | Type | Importable | Description |
|---|---|---|---|
id | string | Yes | The resource ID of the DNS zone |
nameServers | any[] | No | The name servers for the DNS zone |
numberOfRecordSets | number | No | The number of record sets in the DNS zone |
maxNumberOfRecordSets | number | No | The maximum number of record sets allowed |
etag | string | No | The ETag of the DNS zone |