다음을 통해 공유


ResourceGroupResource.MoveResourcesAsync Method

Definition

The resources to be moved must be in the same source resource group in the source subscription being used. 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.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources
  • Operation Id: Resources_MoveResources
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> MoveResourcesAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ResourcesMoveContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member MoveResourcesAsync : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ResourcesMoveContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.MoveResourcesAsync : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ResourcesMoveContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function MoveResourcesAsync (waitUntil As WaitUntil, content As ResourcesMoveContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
ResourcesMoveContent

Parameters for moving resources.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to