CmdID

CmdID / az / az dns-resolver / az dns-resolver policy / az dns-resolver policy vnet-link

az dns-resolver policy vnet-link create

Create a DNS resolver policy virtual network link. Azure CLI extensions reference

1 example 6 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 resolver policy virtual network link

az dns-resolver policy vnet-link create --resource-group sampleResourceGroup --policy-name sampleDnsResolverPolicy --dns-resolver-policy-virtual-network-link-name sampleVirtualNetworkLink --location westus2 --tags "{key1:value1}" --virtual-network "{id:/subscriptions/0403cfa9-9659-4f33-9f30-1f191c51d111/resourceGroups/sampleVnetResourceGroupName/providers/Microsoft.Network/virtualNetworks/sampleVirtualNetwork}"Identify
--resource-groupName of resource group.
--policy-nameThe name of the DNS resolver policy.
--dns-resolver-policy-virtual-network-link-nameThe name of the DNS resolver policy virtual network link for the DNS resolver policy.
--locationLocation.
--tagsResource tags.
--virtual-networkThe reference to the virtual network.

Options

6 in the Azure CLI extensions reference
--dns-resolver-policy-virtual-network-link-name, --name, -nThe name of the DNS resolver policy virtual network link for the DNS resolver policy.
--if-matchETag of the resource.
--if-none-matchSet to '*' to allow a new resource to be created, but to prevent updating an existing resource.
--policy-nameThe name of the DNS resolver policy.
--tagsResource tags.
--virtual-networkThe reference to the virtual network.