snippetbashTip
az network — Manage Azure Network resources. Part of `azure-cli` (also known as `az`). More information: <https:/
Viewed 0 times
az networkresourcescommandazurenetworkclimanagepart
Problem
How to use the
az network command: Manage Azure Network resources. Part of azure-cli (also known as az). More information: <https://learn.microsoft.com/cli/azure/network>.Solution
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-usagesList all virtual networks in a subscription:
az network vnet listCreate a virtual network:
az network vnet create --address-prefixes {{10.0.0.0/16}} {{[-n|--name]}} {{vnet}} {{[-g|--resource-group]}} {{group_name}} --subnet-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}}Code Snippets
List network resources in a region that are used against a subscription quota
az network list-usagesList all virtual networks in a subscription
az network vnet listCreate a virtual network
az network vnet create --address-prefixes {{10.0.0.0/16}} {{[-n|--name]}} {{vnet}} {{[-g|--resource-group]}} {{group_name}} --subnet-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}}Context
tldr-pages: common/az network
Revisions (0)
No revisions yet.