1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 05:15:26 +02:00
tldr/pages/common/az-network.md

743 B

az network

Manage Azure Network resources. Part of azure-cli (also known as az). More information: https://learn.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}} {{[-n|--name]}} {{vnet}} {{[-g|--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 {{[-n|--name]}} {{nic}} {{[-g|--resource-group]}} {{resource_group}}