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

Microsoft TechnologiesSoftware & CodingPowerShell

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

raja
Published on 02-Sep-2021 11:27:45
Advertisements