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

Output formats - Azure CLI
The Azure CLI offers various output formats such as JSON and YAML. Learn how to format the output of Azure CLI commands to tables, lists or json.