MockableAIInfraOptimizationSubscriptionResource.RecommendVmSku 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.
Recommends Azure virtual machine sizes for an AI workload in the specified subscription and azure location.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.AIInfraOptimization/locations/{location}/recommendVmSku.
- Operation Id. : Recommendations_RecommendVmSku.
- Default Api Version. : 2026-06-01-preview.
public virtual Azure.Response<Azure.ResourceManager.AIInfraOptimization.Models.RecommendVmSkuResult> RecommendVmSku(Azure.Core.AzureLocation location, Azure.ResourceManager.AIInfraOptimization.Models.RecommendVmSkuContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RecommendVmSku : Azure.Core.AzureLocation * Azure.ResourceManager.AIInfraOptimization.Models.RecommendVmSkuContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AIInfraOptimization.Models.RecommendVmSkuResult>
override this.RecommendVmSku : Azure.Core.AzureLocation * Azure.ResourceManager.AIInfraOptimization.Models.RecommendVmSkuContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AIInfraOptimization.Models.RecommendVmSkuResult>
Public Overridable Function RecommendVmSku (location As AzureLocation, content As RecommendVmSkuContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RecommendVmSkuResult)
Parameters
- location
- AzureLocation
The name of the Azure region.
- content
- RecommendVmSkuContent
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content is null.