다음을 통해 공유


ResourcesOperationsExtensions.MoveResourcesAsync Method

Definition

Moves resources from one resource group to another resource group.

public static System.Threading.Tasks.Task MoveResourcesAsync (this Microsoft.Azure.Management.ResourceManager.Fluent.IResourcesOperations operations, string sourceResourceGroupName, Microsoft.Azure.Management.ResourceManager.Fluent.Models.ResourcesMoveInfo parameters, System.Threading.CancellationToken cancellationToken = default);
static member MoveResourcesAsync : Microsoft.Azure.Management.ResourceManager.Fluent.IResourcesOperations * string * Microsoft.Azure.Management.ResourceManager.Fluent.Models.ResourcesMoveInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function MoveResourcesAsync (operations As IResourcesOperations, sourceResourceGroupName As String, parameters As ResourcesMoveInfo, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IResourcesOperations

The operations group for this extension method.

sourceResourceGroupName
String

The name of the resource group containing the resources to move.

parameters
ResourcesMoveInfo

Parameters for moving resources.

cancellationToken
CancellationToken

The cancellation token.

Returns

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.

Applies to