Resource Groups
Resource Groups
Resources in a resource group can be moved from one resource group to another resource group
Using Azure PowerShell to move resource groups
$resources = Get-AzResource -ResourceGroupName <name of RG>
Move-AzResource -DestinationResourceGRoupName <destinationName> -ResourceId $resources.resourceID
Using Azure CLI to move resource groups
Use the az resource invoke-action command
If you want to move VMs to another resource group, VM resources that have backups enabled, their backup items/jobs will need to be disabled and deleted before you can move the VM to another resource group otherwise you cannot move the VM otherwise you will see operation errors.