How to get family of azure VM via VM size az cli

Viewed 153

I am looking to get the name of the VM family of a specific VM type via the az cli.

Sample input:

Standard_D16ds_v4

Sample output:

Standard DDSv4 Family vCPUs

Is this possible to do either via az cli or azure RM?

1 Answers

You can use this one,

az vm show -g 'YourResourceGroupName' -n 'VMName' --query 'hardwareProfile.vmSize' -o tsv
Related