CmdID / az / az dnc / az dnc delegated-subnet-service
az dnc delegated-subnet-service create
Create delegated subnet resource. Azure CLI extensions reference
1 example 5 options Its page in the Azure CLI extensions reference
Examples
Create a subnet delegated to DNC
az dnc delegated-subnet-service create --location "West US" --id "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.DelegatedNetwork/controller/dnctestcontroller" --subnet-details-id "/subscriptions/613192d7-503f-477a-9cfe-4efc3ee2bd60/resourceGroups/TestRG/providers/Microsoft.Network/virtualNetworks/testvnet/subnets/testsubnet" --resource-group "TestRG" --resource-name "delegated1" --allocation-block-prefix-size 27Identify--locationLocation.--idcontroller arm resource id--subnet-details-idsubnet arm resource id--resource-groupName of resource group.--resource-nameThe name of the resource.Options
--allocation-block-prefix-size, -a--idcontroller arm resource id--resource-name, --name, -nThe name of the resource.--subnet-details-idsubnet arm resource id--tagsThe resource tags.