Share via


IGenericResources.MoveResources Method

Definition

Move resources from one resource group to another.

public void MoveResources (string sourceResourceGroupName, Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup targetResourceGroup, System.Collections.Generic.IList<string> resources);
abstract member MoveResources : string * Microsoft.Azure.Management.ResourceManager.Fluent.IResourceGroup * System.Collections.Generic.IList<string> -> unit
Public Sub MoveResources (sourceResourceGroupName As String, targetResourceGroup As IResourceGroup, resources As IList(Of String))

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

Applies to