Syntax error How to get the Azure VM available sizes using PowerShell?

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: 2021-09-01T09:31:05+05:30

816 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements