Freigeben über


MockableContainerServiceSubscriptionResource.GetVmSkusAsync Method

Definition

Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a best effort approach to provision the requested VM SKUs, but availability is not guaranteed.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/vmSkus.
  • Operation Id. : VmSkusOperationGroup_List.
  • Default Api Version. : 2026-01-02-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.ContainerService.Models.ContainerServiceVmSku> GetVmSkusAsync(Azure.Core.AzureLocation location, bool? includeExtendedLocations = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVmSkusAsync : Azure.Core.AzureLocation * Nullable<bool> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ContainerService.Models.ContainerServiceVmSku>
override this.GetVmSkusAsync : Azure.Core.AzureLocation * Nullable<bool> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ContainerService.Models.ContainerServiceVmSku>
Public Overridable Function GetVmSkusAsync (location As AzureLocation, Optional includeExtendedLocations As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ContainerServiceVmSku)

Parameters

location
AzureLocation

The name of the Azure region.

includeExtendedLocations
Nullable<Boolean>

To Include Extended Locations information or not in the response.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ContainerServiceVmSku that may take multiple service requests to iterate over.

Applies to