CmdID / az / az network / az network vnet
az network vnet subnet
Manage subnets in an Azure Virtual Network. Azure CLI reference
8 commands 11 options Its page in the Azure CLI reference
Commands
createCreate a subnet and associate an existing NSG and route table.deleteDelete a subnet.listList the subnets in a virtual network.list-available-delegationsList the services available for subnet delegation.list-available-ipsList some available ips in the subnet.showShow details of a subnet.updateUpdate a subnet.waitPlace the CLI in a waiting state until a condition is met.Options
--address-prefixAddress prefix in CIDR format.--address-prefixesSpace-separated list of address prefixes in CIDR format.--disable-private-endpoint-network-policiesDisable private endpoint network policies on the subnet, the policy is disabled by default.--disable-private-link-service-network-policiesDisable private link service network policies on the subnet.--name, -nThe subnet name.--nat-gatewayName or ID of a NAT gateway to attach.--network-security-group, --nsgName or ID of a network security group (NSG).--route-tableName or ID of a route table to associate with the subnet.--service-endpoint-policySpace-separated list of names or IDs of service endpoint policies to apply.--service-endpoints--vnet-nameThe virtual network (VNet) name.