/// <summary> /// Returns the status of a container migration job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Resource group name. /// </param> /// <param name='farmId'> /// Farm Id. /// </param> /// <param name='operationId'> /// Operation Id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MigrationResult> MigrationStatusAsync(this IContainersOperations operations, string resourceGroupName, string farmId, string operationId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.MigrationStatusWithHttpMessagesAsync(resourceGroupName, farmId, operationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }