How can I check the VM sizes available in a certain Azure region?

How can I check the VM sizes available in a certain Azure region?

Q. How can I check the VM sizes available in a certain Azure region?

A. There is a very easy cmdlet available that lists all the VM sizes available for a certain region. To check all the regions that offer VMs then see the sizes in one of those regions use the following:

$resources = Get-AzureRmResourceProvider -ProviderNamespace Microsoft.Compute
$resources.ResourceTypes.Where{($_.ResourceTypeName -eq 'virtualMachines')}.Locations
Get-AzureRmVmSize -Location "East US" | Sort-Object Name | ft Name, NumberOfCores, MemoryInMB, MaxDataDiskCount -AutoSize

For example:

PS C:\> $resources = Get-AzureRmResourceProvider -ProviderNamespace Microsoft.Compute

PS C:\> $resources.ResourceTypes.Where{($_.ResourceTypeName -eq 'virtualMachines')}.Locations
East US
East US 2
West US
Central US
North Central US
South Central US
North Europe
West Europe
East Asia
Southeast Asia
Japan East
Japan West
Brazil South
Canada Central
Canada East
West US 2
West Central US
PS C:\> Get-AzureRmVmSize -Location "East US" | Sort-Object Name | ft Name, NumberOfCores, MemoryInMB, MaxDataDiskCount -AutoSize

Name             NumberOfCores MemoryInMB MaxDataDiskCount
----             ------------- ---------- ----------------
Basic_A0                     1        768                1
Basic_A1                     1       1792                2
Basic_A2                     2       3584                4
Basic_A3                     4       7168                8
Basic_A4                     8      14336               16
Standard_A0                  1        768                1
Standard_A1                  1       1792                2
Standard_A10                 8      57344               16
Standard_A11                16     114688               16
Standard_A2                  2       3584                4
Standard_A3                  4       7168                8
Standard_A4                  8      14336               16
Standard_A5                  2      14336                4
Standard_A6                  4      28672                8
Standard_A7                  8      57344               16
Standard_A8                  8      57344               16
Standard_A9                 16     114688               16
Standard_D1                  1       3584                2
Standard_D1_v2               1       3584                2
Standard_D11                 2      14336                4
Standard_D11_v2              2      14336                4
Standard_D12                 4      28672                8
Standard_D12_v2              4      28672                8
Standard_D13                 8      57344               16
Standard_D13_v2              8      57344               16
Standard_D14                16     114688               32
Standard_D14_v2             16     114688               32
Standard_D15_v2             20     143360               40
Standard_D2                  2       7168                4
Standard_D2_v2               2       7168                4
Standard_D3                  4      14336                8
Standard_D3_v2               4      14336                8
Standard_D4                  8      28672               16
Standard_D4_v2               8      28672               16
Standard_D5_v2              16      57344               32
Standard_DS1                 1       3584                2
Standard_DS1_v2              1       3584                2
Standard_DS11                2      14336                4
Standard_DS11_v2             2      14336                4
Standard_DS12                4      28672                8
Standard_DS12_v2             4      28672                8
Standard_DS13                8      57344               16
Standard_DS13_v2             8      57344               16
Standard_DS14               16     114688               32
Standard_DS14_v2            16     114688               32
Standard_DS15_v2            20     143360               40
Standard_DS2                 2       7168                4
Standard_DS2_v2              2       7168                4
Standard_DS3                 4      14336                8
Standard_DS3_v2              4      14336                8
Standard_DS4                 8      28672               16
Standard_DS4_v2              8      28672               16
Standard_DS5_v2             16      57344               32
Standard_F1                  1       2048                2
Standard_F16                16      32768               32
Standard_F16s               16      32768               32
Standard_F1s                 1       2048                2
Standard_F2                  2       4096                4
Standard_F2s                 2       4096                4
Standard_F4                  4       8192                8
Standard_F4s                 4       8192                8
Standard_F8                  8      16384               16
Standard_F8s                 8      16384               16

 

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish