HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

az network — Manage Azure Network resources. Part of `azure-cli` (also known as `az`). More information: <https:/

Submitted by: @import:tldr-pages··
0
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-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}} --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-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}} --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.