CmdID

CmdID / az / az dns-resolver / az dns-resolver forwarding-rule

az dns-resolver forwarding-rule create

Create a forwarding rule in a DNS forwarding ruleset. Azure CLI extensions reference

1 example 8 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Upsert forwarding rule in a DNS forwarding ruleset

az dns-resolver forwarding-rule create --ruleset-name "sampleDnsForwardingRuleset" --name "sampleForwardingRule" --domain-name "contoso.com." --forwarding-rule-state "Enabled" --metadata additionalProp1="value1" --target-dns-servers [{ip-address:"10.0.0.1",port:53},{ip-address:"10.0.0.2",port:53}] --resource-group "sampleResourceGroup"Identify
--ruleset-nameThe name of the DNS forwarding ruleset.
--nameThe name of the forwarding rule.
--domain-nameThe domain name for the forwarding rule.
--forwarding-rule-stateThe state of forwarding rule.
--metadataMetadata attached to the forwarding rule.
--resource-groupName of resource group.

Options

8 in the Azure CLI extensions reference
--domain-nameThe domain name for the forwarding rule.
--forwarding-rule-name, --name, -nThe name of the forwarding rule.
--forwarding-rule-stateThe state of forwarding rule.
--if-matchETag of the resource.
--if-none-matchSet to '*' to allow a new resource to be created, but to prevent updating an existing resource.
--metadataMetadata attached to the forwarding rule.
--ruleset-nameThe name of the DNS forwarding ruleset.
--target-dns-servers