You are right, we can use CLI 2.0 to get the metric data:
az monitor metrics list --resource /subscriptions/xxxxxxx/resourceGroups/xxxxx/providers/Microsoft.Compute/virtualMachines/xxxx --metric-names "Percentage CPU" --time-grain "PT1M" >> PercentageCpuData.txt
Also we can use Azure PowerShell command
Get-AzureRmMetricDefinition to get metrics.
Here are the metrics for Azure VM:
PS D:\testdata> (Get-AzureRmMetricDefinition -ResourceId $id).name
Percentage CPU Percentage CPU
Network In Network In
Network Out Network Out
Disk Read Bytes Disk Read Bytes
Disk Write Bytes Disk Write Bytes
Disk Read Operations/Sec Disk Read Operations/Sec
Disk Write Operations/Sec Disk Write Operations/Sec
CPU Credits Remaining CPU Credits Remaining
CPU Credits Consumed CPU Credits Consumed
Then we can use the value to get other metrics:
Get-AzureRmMetric -ResourceId $id -TimeGrain 00:01:00 -DetailedOutput -MetricNames "Network in"
Here a similar case about you, please refer to it.
By the way, difference about Azure Host metrics and Guest metrics, please refer to this link.