az vm list

Description

Get the details of the virtual machines.

Command
az vm list
Examples
List all VMs in the default subscription
az vm list
List VMs in a specific resource group and show details
az vm list --resource-group MyResourceGroup --show-details -o table
Parameters
Parameter Type Required Description
--resource-group <name> string No Name of resource group.
--show-details string No Show detail information of a VM, such as power states and IPs.
-o, --output <format> string No Output format.
Command Info
Category: Virtual Machine
Type: Azure
Views: 14
Status: Active
Tags
azure vm compute list