Language

AIInfraOptimizationExtensions.RecommendVmSkuAsync Method

Definition

Recommends Azure virtual machine sizes for an AI workload in the specified subscription and azure location. <item> Mocking. To mock this method, please mock RecommendVmSkuAsync(AzureLocation, RecommendVmSkuContent, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AIInfraOptimization.Models.RecommendVmSkuResult>> RecommendVmSkuAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.AIInfraOptimization.Models.RecommendVmSkuContent content, System.Threading.CancellationToken cancellationToken = default);
static member RecommendVmSkuAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.AIInfraOptimization.Models.RecommendVmSkuContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AIInfraOptimization.Models.RecommendVmSkuResult>>
<Extension()>
Public Function RecommendVmSkuAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, content As RecommendVmSkuContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RecommendVmSkuResult))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The name of the Azure region.

content
RecommendVmSkuContent

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to