Set default output format for Azure CLI commands
The Azure CLI uses JSON as its default output format, but offers other formats. The argument values and types of output are:
json: JSON string. This setting is the default
jsonc: Colorized JSON
table: ASCII table with keys as column headings
tsv: Tab-separated values, with no keys
yaml: YAML, a human-readable alternative to JSON
yamlc: Colorized YAML
none: No output other than errors and warnings
Use the --output
(--out
or -o
) parameter to format CLI output.
az account show --output jsonc
Or using global setting. Select a default output value that you use the most so you don't have to continually provide an --output
parameter for each reference command.
az config set core.output=jsonc
For more details, click on the link below to access the official documentation
Member discussion