Get Azure virtual machine sizes

You can use Get-AzureRoleSize cmdlet to get virtual machine sizes. Since there are many sizes available, you can use Format-Table cmdlet to display in a nice tabular format:

azure-virtual-machine-sizes
Get Azure virtual machine sizes

There are much more role sizes available then shown in the image. The Get-AzureRoleSize cmdlet returns all of the available sizes for virtual machines and
cloud services (web and worker roles) if the InstanceSize parameter is not specified. If you
specify a size, the cmdlet only returns information for that size. This cmdlet also exposes two properties: SupportedByWebWorkerRoles and SupportedByVirtualMachines. These properties identify whether the size is supported on web and worker roles, virtual machines, or both.

You can pipe output to Select-Object and Sort-Object cmdlets to filter and sort per your requirements. For example, to get role sizes, sorted by available RAM on servers, use below command:

Get-AzureRoleSize | select InstanceSize,Cores,MemoryInMb | Sort-Object MemoryInMb -Descending
Virtual machine sizes sorted by available RAM
Virtual machine sizes sorted by available RAM

To get role sizes, sorted by maximum number of data disk available, use below command:

Get-AzureRoleSize | select InstanceSize,MemoryInMb,MaxDataDiskCount | Sort-Object maxdatadiskcount -Descending
azure-virtual-machine-sizes-sorted-by-number-of-data-disks
azure virtual machine sizes sorted by number of data disks

You can also identify the currently available virtual machine configurations through MSDN at http://msdn.microsoft.com/en-us/library/azure/dn197896.aspx

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s