Microsoft Azure (AZ-104): Move Resources to a New Resource Group or Subscription
What is resource group?
Resource group can create logical groups of resources such as VMs, storage volumes, IP addresses, network interfaces and etc.
This makes it easier to apply access controls, monitor activity, and track the costs related to specific workloads.
What do you need to know when you are moving resources?
Both the source group and target group are locked during the move operation. This means that write and delete are blocked on the resource groups till the move completes.
Moving a resource only moves it to a new resource group or subscription. It doesn’t change the location of the resource.
For a move across subscriptions, the resource and its dependent resources must be located in the same resource group and they must be moved together.
Step 1: If dependent resources are distributed across different resource groups, first move them into one resource group.
Step 2: Move the resource and dependent resources together from the source subscription to the target subscription.
Step 3: Optionally, redistribute the dependent resources to different resource groups within the target subscription.
Resource Groups: labGrpA (EastUS), labGrpB (WestUS)
labNic1 (Network Interface) → Attached to VM located in labNetwork
labIP1 (Public IP Address)
labNetwork (Virtual Network)
labStore (Storage Account)
#1 Would you be able to move labNic1 to labGrpB? Yes
#2 If the public IP address is moved to labGrpB, would the location of the resource change? No
- Storage Account must be in the same region as Recovery Service Vault, regardless of Resource Group.
- Log Analytics Workspace can be created independent of the Resource Group and Region.