/// <summary> /// Gets the async operation status. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterName'> /// The name of the cluster. /// </param> /// <param name='extensionName'> /// The name of the cluster extension. /// </param> /// <param name='operationId'> /// The long running operation id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AsyncOperationResult> GetAzureAsyncOperationStatusAsync(this IExtensionsOperations operations, string resourceGroupName, string clusterName, string extensionName, string operationId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetAzureAsyncOperationStatusWithHttpMessagesAsync(resourceGroupName, clusterName, extensionName, operationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }