Share via


ResourceGroupResource.MoveResources 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 Azure.ResourceManager.ArmOperation MoveResources (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ResourcesMoveContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member MoveResources : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ResourcesMoveContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.MoveResources : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ResourcesMoveContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function MoveResources (waitUntil As WaitUntil, content As ResourcesMoveContent, Optional cancellationToken As CancellationToken = Nothing) As 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