Availability Sets - List Available Sizes

Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes?api-version=2018-06-01

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

resourceGroupName
path True
  • string

The name of the resource group.

availabilitySetName
path True
  • string

The name of the availability set.

api-version
query True
  • string

Client Api Version.

Responses

Name Type Description
200 OK

OK

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Definitions

VirtualMachineSize

Describes the properties of a VM size.

VirtualMachineSizeListResult

The List Virtual Machine operation response.

VirtualMachineSize

Describes the properties of a VM size.

Name Type Description
maxDataDiskCount
  • integer

The maximum number of data disks that can be attached to the virtual machine size.

memoryInMB
  • integer

The amount of memory, in MB, supported by the virtual machine size.

name
  • string

The name of the virtual machine size.

numberOfCores
  • integer

The number of cores supported by the virtual machine size.

osDiskSizeInMB
  • integer

The OS disk size, in MB, allowed by the virtual machine size.

resourceDiskSizeInMB
  • integer

The resource disk size, in MB, allowed by the virtual machine size.

VirtualMachineSizeListResult

The List Virtual Machine operation response.

Name Type Description
value

The list of virtual machine sizes.