Complete the code to set the Azure CLI output format to JSON.
az configure --defaults output=[1]Setting the output to json makes Azure CLI return results in JSON format.
Complete the command to list Azure VMs with output in table format.
az vm list --output [1]The table output format shows results in a readable table layout.
Fix the error in this command to output VM names only in TSV format.
az vm list --query "[].[1]" --output tsv
The name property returns the VM names, which is what we want in this query.
Fill both blanks to output VM names and their locations in JSON format.
az vm list --query "[].{VMName: [1], Location: [2]" --output json
Use name for VM names and location for their regions.
Fill all three blanks to output VM names, resource groups, and OS types in table format.
az vm list --query "[].{Name: [1], ResourceGroup: [2], OS: storageProfile.[3].osType}" --output table
The name is VM name, resourceGroup is the group, and osDisk holds the OS type info.
