IGenericResources.MoveResourcesAsync(String, IResourceGroup, IList<String>, CancellationToken) Method

Definition

Move resources from one resource group to another.

public System.Threading.Tasks.Task MoveResourcesAsync (string sourceResourceGroupName, Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup targetResourceGroup, System.Collections.Generic.IList<string> resources, System.Threading.CancellationToken cancellationToken = null);
abstract member MoveResourcesAsync : string * Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

sourceResourceGroupName
String

sourceResourceGroupName Source resource group name

targetResourceGroup
IResourceGroup

targetResourceGroup target resource group, can be in a different subscription

resources
IList<String>

resources the list of IDs of the resources to move

cancellationToken
CancellationToken

Returns

Task

Applies to