CmdID

CmdID / az / az dns-resolver / az dns-resolver forwarding-ruleset

az dns-resolver forwarding-ruleset create

Create a DNS forwarding ruleset. Azure CLI extensions reference

1 example 5 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 DNS forwarding ruleset

az dns-resolver forwarding-ruleset create --name "samplednsForwardingRuleset" --location "westus2" --outbound-endpoints [{id:"/subscriptions/abdd4249-9f34-4cc6-8e42-c2e32110603e/resou rceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsResolvers/sampleDnsResolver/out boundEndpoints/sampleOutboundEndpoint0"},{id:"/subscriptions/abdd4249-9f3 4-4cc6-8e42-c2e32110603e/resourceGroups/sampleResourceGroup/providers/Microsoft.Network/dnsR esolvers/sampleDnsResolver/outboundEndpoints/sampleOutboundEndpoint1"}] --tags key1="value1" --resource-group "sampleResourceGroup"Identify
--nameThe name of the DNS forwarding ruleset.
--locationLocation.
--tagsSpace-separated tags: key[=value] [key[=value] ...].
--resource-groupName of resource group.

Options

5 in the Azure CLI extensions reference
--dns-forwarding-ruleset-name, --name, -nThe name of the DNS forwarding ruleset.
--if-matchETag of the resource.
--if-none-matchSet to '*' to allow a new resource to be created, but to prevent updating an existing resource.
--outbound-endpoints
--tagsSpace-separated tags: key[=value] [key[=value] ...].