![Forrest logo](/images/logo.png)
az-network:tldr:fc3d0
az-network: List all virtual networks in a subscription.
$ az network vnet list
try on your machine
The "az network vnet list" command is used in the Azure command-line interface (CLI) to list all the virtual networks (VNets) in a subscription or a specific resource group.
Here's a breakdown of the command:
- "az" is the Azure CLI command.
- "network" refers to the Azure network resources.
- "vnet" is short for virtual network.
- "list" is the action to list the VNets.
By running this command, you will see a list of all the VNets configured within the specified scope (subscription or resource group). The output typically includes information such as the VNet name, resource group, location, VNet ID, subnets, and more.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.