Azure CLI 2 · Resource groups and VMs
List VMs and their IPs
Show VMs with their public IP addresses and power state.
az vm list --show-details --output table
Official Azure CLI 2 documentation
More resource groups and vms commands
- Create a resource group
- List resource groups
- Delete a resource group
- Create a Linux VM
- Stop and deallocate a VM
- Start a VM
All resource groups and vms commands · Azure CLI 2 cheatsheet