0
0
Azurecloud~15 mins

Output formats (json, table, tsv) in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
Azure CLI Output Formats: JSON, Table, and TSV
📖 Scenario: You are managing resources in Microsoft Azure using the Azure Command-Line Interface (CLI). You want to see the list of virtual machines in different output formats to better understand how data is presented.
🎯 Goal: Learn how to use Azure CLI commands to list virtual machines and display the output in json, table, and tsv formats.
📋 What You'll Learn
Use Azure CLI commands to list virtual machines
Set output format to JSON
Set output format to Table
Set output format to TSV
💡 Why This Matters
🌍 Real World
Cloud administrators often need to view resource information in different formats for scripts, reports, or quick checks.
💼 Career
Knowing how to change output formats and filter data is essential for efficient cloud resource management and automation.
Progress0 / 4 steps
1
List virtual machines with JSON output
Write the Azure CLI command to list all virtual machines in your subscription using the --output json option exactly as shown.
Azure
Need a hint?

Use az vm list --output json to get the list in JSON format.

2
List virtual machines with Table output
Write the Azure CLI command to list all virtual machines using the --output table option exactly as shown.
Azure
Need a hint?

Use az vm list --output table to see the list in a readable table format.

3
List virtual machines with TSV output
Write the Azure CLI command to list all virtual machines using the --output tsv option exactly as shown.
Azure
Need a hint?

Use az vm list --output tsv to get the list in tab-separated values format.

4
Add a filter to show only VM names in JSON format
Write the Azure CLI command to list only the names of virtual machines using --query with [].name and --output json exactly as shown.
Azure
Need a hint?

Use az vm list --query [].name --output json to get only VM names in JSON format.