IGenericResources.MoveResourcesAsync(String, IResourceGroup, IList<String>, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- System.String
sourceResourceGroupName Source resource group name
- targetResourceGroup
- IResourceGroup
targetResourceGroup target resource group, can be in a different subscription
- resources
- System.Collections.Generic.IList<System.String>
resources the list of IDs of the resources to move
- cancellationToken
- System.Threading.CancellationToken
Returns
- System.Threading.Tasks.Task