CmdID

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

az dns-resolver forwarding-rule update

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

1 example 7 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

Update forwarding rule in a DNS forwarding ruleset

az dns-resolver forwarding-rule update --ruleset-name "sampleDnsForwardingRuleset" --name "sampleForwardingRule" --forwarding-rule-state "Disabled" --metadata additionalProp2="value2" --resource-group "sampleResourceGroup"Identify
--ruleset-nameThe name of the DNS forwarding ruleset.
--nameThe name of the forwarding rule.
--forwarding-rule-stateThe state of forwarding rule.
--metadataMetadata attached to the forwarding rule.
--resource-groupName of resource group.

Options

7 in the Azure CLI extensions reference
--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