Process Flow - Output formats (json, table, tsv)
Start Command
Select Output Format
Format Data
Display Output
End
The command starts, you choose an output format (json, table, or tsv), data is formatted accordingly, then displayed.
az vm list --output json az vm list --output table az vm list --output tsv
| Step | Command | Output Format Selected | Data Formatting | Output Example |
|---|---|---|---|---|
| 1 | az vm list --output json | json | Data structured as JSON objects | {"name": "vm1", "location": "eastus"} |
| 2 | az vm list --output table | table | Data formatted into columns and rows | Name Location vm1 eastus |
| 3 | az vm list --output tsv | tsv | Data formatted as tab-separated values | vm1 eastus |
| 4 | End | N/A | Output displayed to user | Output shown in chosen format |
| Variable | Start | After json | After table | After tsv | Final |
|---|---|---|---|---|---|
| output_format | none | json | table | tsv | tsv |
| formatted_data | none | JSON object | Table string | TSV string | TSV string |
Azure CLI output formats: - json: structured data, good for automation - table: human-readable columns - tsv: tab-separated, easy for scripts Use --output or -o flag to select format Example: az vm list --output json
--output json when running Azure CLI commands?--output or -o.--output table. Other options are either wrong flag or different formats.az storage account list -o tsv-o tsv flagtsv output format produces tab-separated values, useful for scripts or exporting.az group list --output tsv but get an error. What is the most likely cause?az group list requires an active Azure subscription (via az login and az account set-subscription).az from running at all, wrong flag like table would output table instead of error.Pass the test and this pattern moves unknown