The dnsForwardingRulesets/forwardingRules resource type can be deployed to:
For a list of changed properties in each API version, see change log.
To create a Microsoft.Network/dnsForwardingRulesets/forwardingRules resource, add the following JSON to your template.
{
"type": "Microsoft.Network/dnsForwardingRulesets/forwardingRules",
"apiVersion": "2022-07-01",
"name": "string",
"properties": {
"domainName": "string",
"forwardingRuleState": "string",
"metadata": {},
"targetDnsServers": [
{
"ipAddress": "string",
"port": "int"
}
]
}
}
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.Network/dnsForwardingRulesets/forwardingRules' |
apiVersion | The resource api version | '2022-07-01' |
name | The resource name See how to set names and types for child resources in JSON ARM templates. |
string (required) |
properties | Properties of the forwarding rule. | ForwardingRuleProperties (required) |
Name | Description | Value |
---|---|---|
domainName | The domain name for the forwarding rule. | string (required) |
forwardingRuleState | The state of forwarding rule. | 'Disabled' 'Enabled' |
metadata | Metadata attached to the forwarding rule. | object |
targetDnsServers | DNS servers to forward the DNS query to. | TargetDnsServer[] (required) |
Name | Description | Value |
---|---|---|
ipAddress | DNS server IP address. | string (required) |
port | DNS server port. | int |
The following quickstart templates deploy this resource type.
Template | Description |
---|---|
Azure DNS Private Resolver |
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. |