/// <summary> /// Moves resources from one resource group to another resource group. /// </summary> /// <remarks> /// The resources to move must be in the same source resource group. The target /// resource group may be in a different subscription. When moving resources, /// both the source group and the target group are locked for the duration of /// the operation. Write and delete operations are blocked on the groups until /// the move completes. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='sourceResourceGroupName'> /// The name of the resource group containing the resources to move. /// </param> /// <param name='parameters'> /// Parameters for moving resources. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginMoveResourcesAsync(this IResourcesOperations operations, string sourceResourceGroupName, ResourcesMoveInfoInner parameters, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginMoveResourcesWithHttpMessagesAsync(sourceResourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); }