Delen via


IGenericResources.MoveResourcesAsync Method

Definition

Move resources from one resource group to another asynchronously.

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 = default);
abstract member MoveResourcesAsync : string * Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function MoveResourcesAsync (sourceResourceGroupName As String, targetResourceGroup As IResourceGroup, resources As IList(Of String), Optional cancellationToken As CancellationToken = Nothing) As 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

Applies to