tldr/pages/common/az-network.md

22 lines
685 B
Markdown
Raw Permalink Normal View History

2021-10-10 19:42:04 +01:00
# az network
> Manage Azure Network resources.
> Part of `azure-cli`.
> More information: <https://docs.microsoft.com/cli/azure/network>.
- List network resources in a region that are used against a subscription quota:
`az network list-usages`
- List all virtual networks in a subscription:
`az network vnet list`
- Create a virtual network:
`az network vnet create --address-prefixes {{10.0.0.0/16}} --name {{vnet}} --resource_group {{group_name}} --submet-name {{subnet}} --subnet-prefixes {{10.0.0.0/24}}`
- Enable accelerated networking for a network interface card:
`az network nic update --accelerated-networking true --name {{nic}} --resource-group {{resource_group}}`