RecommendationsOperationsExtensions.GetGenerateStatusAsync 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.

public static System.Threading.Tasks.Task GetGenerateStatusAsync (this Microsoft.Azure.Management.Advisor.IRecommendationsOperations operations, Guid operationId, System.Threading.CancellationToken cancellationToken = default);
static member GetGenerateStatusAsync : Microsoft.Azure.Management.Advisor.IRecommendationsOperations * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function GetGenerateStatusAsync (operations As IRecommendationsOperations, operationId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IRecommendationsOperations

The operations group for this extension method.

operationId
Guid

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

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to