Sooner or later you may need to move your Azure assets to either another Azure resource group or to another Azure subscription. This is easy to do and is helpful while arranging your assets for the executives or charging situations. Before moving any assets it's ideal to investigate the accompanying checklist before moving resources.
Before jumping into the procedure itself, I’d like to add some critical information here that if the count of resources of a resource group is more than 100+, for now, it’d not be possible to perform the migration using the GUI and PowerShell must be used for this purpose. The reason for that is, only 100 resources get listed on one single page as per the design of Azure and to select the resources from multiple pages in one go isn’t something supported by Azure for the time being. Hope they’ll change it in the near future.
As a way around for the 100+ resources issue, you may try to delete the useless resources placed in a resource group to trickle down its count to 100 at max.
Alright how about we begin? In this article, I'll be moving an Azure Resource Group with various resources over to another Azure Subscription. After the checklist has been seen and accompanied, it’s time to move the Resources.
Steps for Migrating Resources between Azure Subscriptions
Following are the steps one would need to follow:
- Navigate to the concerning Resource Group.
- Select Resources enabling the Move button.
- Click Move to another subscription.
- Finalize the Resource selection.
- Validate the Move.
- Verify the Move has been done.
- Clean up the source environment.
Navigate to the resource group you want to move. Go to the Resource Groups blade in the Azure portal and then navigate to the particular resource group.
Here select all the dependent resources on another/independent individual resources. The circled area for the check box is using which you may select all the resources of one single page listing max 100 resources.
Next in the resources to move screen, review the resources that are to be moved over which are all automatically selected. Then select the subscription and resource group you want to move target. If the resource group is not already created, you can create it now in the target subscription.
Now click on the OK button to start the process. The job will then be validated and then you will see a notification of the movement in progress, followed by a success or failure notification. In the event of a failure, details will be provided on why the resources could not be moved. Usually after working through these issues you can try again.
Finally, you want to tidy up and delete the original resource group on the source subscription as it’s now empty and should not be used again. To do this go to the original resource group and click on Delete resource group button. You will be prompted to type in the name of the resource group to confirm you want to continue.
Known Issues with Azure Microsoft Resources Migration
1. How to deal with this error popping during the validation of Move “Automation account is linked to a workspace so it cannot be moved”?
You may take this error in the perspective of “MS does not support move of this type” as unlinking the workspace would cause loss of all solutions created for the concerning automation account. In some cases, if it’s necessary, please make it an independent resource by unlinking its Workspace.
2. What does this error mean “The move resources request does not contain all the dependent resources”?
As the statement says, your move consists some of the resources which are dependent on others missing in this move i.e. VM has its disk in the move but missing the Storage Account or its Virtual Network or NSG etc. Please make sure to move all the dependent resources in one go.
3. How to cope with the error stating “being backed up as part of Azure Backup job”?
Please note that the error code clearly states "code":"DiskHasRestorePoints". You’d need to find those restore points for the concerning resource, delete them, as they again get created by themselves as per the Backup Policy Schedule and after deleting them, you’ll be good to go to migrate these.
Please make sure to check the “Show hidden types” checkbox to find these.
4. It’s saying, “Resource move is not supported for resources that have plan with different subscriptions.”?
You need to let go these resources as MS don’t allow some of the resource move by default. i.e. Network Watchers, Bing Keys, Workspaces etc.
Another critical thing to note is, for migrating the Virtual Networks, if there is some peering done for them, please remove it and try to move the resource afterwards.
You may follow the same move procedure to migrate Resources to another Resource Group! Hope this guide will help you through the process and if you still have questions, you can get in touch with us - we'd love to help you out!
Last Updated 1 month ago