AZ-104 Microsoft Azure Administrator Exam
You're a great admin... on-prem. Now, become a great admin in the cloud and prove it by passing the Microsoft Certified: Azure Administrator Associate exam!
Practice Test

Practice Test

Move a virtual machine to another resource group, subscription, orregion
Execute the Move Operation
Moving a virtual machine to another resource group, subscription, or region in Azure requires a series of carefully planned steps to ensure minimal disruption and downtime.
Prerequisites
Before starting the move, certain prerequisites need to be verified:
- Ensure that both source and destination subscriptions are active and belong to the same Microsoft Entra ID tenant.
- Complete the resource provider registration for the destination subscription.
- Identify all dependent resources; these may need to be consolidated into the same resource group for a smoother transition.
Using the Azure Portal
The Azure Portal can be used to move resources with ease:
- Begin by selecting the resource group that contains the resources intended for transfer.
- Then, select the resources you're planning to move, either individually or collectively.
- Use the Move button and select whether you're moving to a new resource group, subscription, or region.
- Clearly specify the destination, noting the new resource group and subscription.
- Validate the operation to ensure compliance with all prerequisites.
- Be aware of changes needed for tools and scripts regarding updated resource IDs.
- Finally, start the move and keep an eye on its progress through Azure's monitoring features.
Role Assignments and Dependencies
During the move process:
- Role assignments do not automatically transfer and must be recreated in the destination group.
- Ensure all dependent resources are moved together to prevent any disruptions in service. For instance, a virtual machine must be moved alongside its managed disks.
Handling Special Cases
Some unique situations may require further preparation:
- When dealing with disk encryption, it might be necessary to temporarily disable encryption before transferring the VM to another subscription.
- If the VM is part of a Marketplace plan unavailable in the new location, you must deprovision and redeploy within the new subscription.
- For VMs using Azure Backup, remove restore point collections prior to moving.
Conclusion
Successfully moving a virtual machine in Azure calls for thorough planning and execution. By addressing dependencies and special cases, users can achieve seamless transitions between resource groups, subscriptions, or regions while keeping downtime to a minimum.