This template provisions Azure DNS Private Resolver in a virtual network with required forwarding ruleset and rules. It creates a new virtual network with two subnets, and deploy Azure DNS Private Resolver in this VNET.
ARM template resource definition
The dnsResolvers resource type can be deployed with operations that target:
This template provisions Azure DNS Private Resolver in a virtual network with required forwarding ruleset and rules. It creates a new virtual network with two subnets, and deploy Azure DNS Private Resolver in this VNET.
Terraform (AzAPI provider) resource definition
The dnsResolvers resource type can be deployed with operations that target:
Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/dnsResolvers resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/dnsResolvers@2023-07-01-preview"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
virtualNetwork = {
id = "string"
}
}
})
}
Property values
DnsResolverProperties
Name
Description
Value
virtualNetwork
The reference to the virtual network. This cannot be changed after creation.