AdvisorExtensions.GetGenerateStatusRecommendation 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 Azure.Response GetGenerateStatusRecommendation (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Guid operationId, System.Threading.CancellationToken cancellationToken = default);
static member GetGenerateStatusRecommendation : Azure.ResourceManager.Resources.SubscriptionResource * Guid * System.Threading.CancellationToken -> Azure.Response
<Extension()>
Public Function GetGenerateStatusRecommendation (subscriptionResource As SubscriptionResource, operationId As Guid, Optional cancellationToken As CancellationToken = Nothing) As 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