How to get the Azure VM available sizes using PowerShell?


To get the Azure VM sizes using PowerShell, we can use the Get-AzVmSize command.

To get all the supported Azure VM sizes as per location, use the below command.

PS C:\> Get-AzVMSize -Location Eastus

Output

To get available and supported size for the existing virtual machine, use the below command.

Get-AzVMSize -ResourceGroupName ResourceGroup1 -VMName TestVM

Updated on: 01-Sep-2021

610 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements