ContainerServiceExtensions.GetVmSkusAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. <item> Mocking. To mock this method, please mock GetVmSkusAsync(AzureLocation, Nullable<Boolean>, CancellationToken) instead. </item>
public static Azure.AsyncPageable<Azure.ResourceManager.ContainerService.Models.ContainerServiceVmSku> GetVmSkusAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, bool? includeExtendedLocations = default, System.Threading.CancellationToken cancellationToken = default);
static member GetVmSkusAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Nullable<bool> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ContainerService.Models.ContainerServiceVmSku>
<Extension()>
Public Function GetVmSkusAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional includeExtendedLocations As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ContainerServiceVmSku)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- location
- AzureLocation
The name of the Azure region.
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.
Exceptions
subscriptionResource is null.