Azure CLI 2 · Output and queries

Filter results with JMESPath

Select only the fields you need.

az vm list --query "[].{name:name, size:hardwareProfile.vmSize}" --output table

Official Azure CLI 2 documentation

More output and queries commands

All output and queries commands · Azure CLI 2 cheatsheet

Was this page helpful?