Skip to content

Quick Tips

AZ CLI output format

To specify the format of the output for an AZ CLI commannd, add the --output parameter, and one of the value below:

FormatDescription
jsonJSON string. Default format
jsoncColorized JSON string
tableASCII table with keys as column headings
tsvTab-separated values, with no keys
yamlYAML, a human-readable alternative to JSON
yamlcColorized YAML
noneNo output other than errors and warnings

To permatently set the output format, enter the following command:

powershell
az config set core.output=yamlc

Source: Output formats for Azure CLI commands