How to get the available azure VM size using Azure CLI in PowerShell?


To get all the available Azure VM sizes using Azure CLI from the specific location, we can use the az vm list-sizes command.

PS C:\> az vm list-sizes -l eastus

The default output is in the JSON format, as shown below.

To get the output in the table format, use the below command.

PS C:\> az vm list-sizes -l eastus -otable

Output

Updated on: 02-Sep-2021

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements