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

All resource groups and vms commands · Azure CLI 2 cheatsheet

Was this page helpful?