Share via


AdvisorExtensions.GetGenerateStatusRecommendationAsync Method

Definition

Retrieves the status of the recommendation computation or generation process. Invoke this API after calling the generation recommendation. The URI of this API is returned in the Location field of the response header.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/generateRecommendations/{operationId}
  • Operation Id: Recommendations_GetGenerateStatus
public static System.Threading.Tasks.Task<Azure.Response> GetGenerateStatusRecommendationAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Guid operationId, System.Threading.CancellationToken cancellationToken = default);
static member GetGenerateStatusRecommendationAsync : Azure.ResourceManager.Resources.SubscriptionResource * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
<Extension()>
Public Function GetGenerateStatusRecommendationAsync (subscriptionResource As SubscriptionResource, operationId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

operationId
Guid

The operation ID, which can be found from the Location field in the generate recommendation response header.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource is null.

Applies to