/// <summary> /// Starts a container migration job to migrate containers to the specified /// destination share. /// </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='shareName'> /// Share name. /// </param> /// <param name='migrationParameters'> /// The parameters of container migration job. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MigrationResult> BeginMigrateAsync(this IContainersOperations operations, string resourceGroupName, string farmId, string shareName, MigrationParameters migrationParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginMigrateWithHttpMessagesAsync(resourceGroupName, farmId, shareName, migrationParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }