Complete the code to retrieve CPU usage metric for an Azure VM.
az monitor metrics list --resource [1] --metric "Percentage CPU"
The full resource ID is required to specify the Azure VM resource when retrieving metrics.
Complete the code to filter metrics by time range in Azure CLI.
az monitor metrics list --resource [1] --metric "Network In" --interval PT1H
The NetworkIn metric applies to network interfaces, so the resource must be a network interface ID.
Fix the error in the Azure CLI command to list metrics for a storage account.
az monitor metrics list --resource [1] --metric TransactionsThe Transactions metric is valid for storage accounts, so the resource must be a storage account ID.
Fill both blanks to create a query that lists CPU and Memory metrics for a VM in the last 30 minutes.
az monitor metrics list --resource [1] --metric [2] --interval PT30M
The resource must be the VM's full resource ID, and the metrics must include CPU and memory metrics separated by spaces.
Fill all three blanks to create a command that retrieves average Disk Write Bytes metric for a VM over the last hour with aggregation.
az monitor metrics list --resource [1] --metric [2] --aggregation [3] --interval PT1H
The command requires the VM's full resource ID, the correct metric name, and the aggregation type 'Average' to get average values.