How Can I Move My VMs to Different Subscriptions Without Losing My VNet Setup?

0
1
Asked By CloudExplorer99 On

I have 7 VMs in one subscription but want to organize them better for invoicing purposes. Specifically, I need to move 2 VMs to NewSubscriptionA and 2 other VMs to NewSubscriptionB, while the remaining 3 VMs stay where they are. The challenge is that all 7 of these VMs are in the same VNet, and from what I gather, I can't just move VMs to a new subscription without moving the VNet and its dependencies too. What's the best strategy to achieve this? Keep in mind, all VMs are also protected by Azure Backup.

1 Answer

Answered By TechGuru88 On

I had to do a similar move for a contractor before. The approach we took was to create snapshots of all the disks while targeting the new subscription. After that, we created new disks from those snapshots and spun up VMs again from the OS disks, attaching data disks as needed. Just a heads up, make sure the disks and the VM are in the same availability zone when you try to attach them later. If you’re moving to a new subscription, you might want to set up a new VNet since that’s a requirement. And public IPs can be reassigned between subscriptions too. If the VMs need to communicate with each other, VNet peering might be an alternative to consider, even if it incurs some costs.

VMoverPro -

I totally overlooked the VNet requirement too and I agree, splitting everything into new VNets feels excessive for my setup. If you can’t avoid it for the subscriptions, I think I might have to abandon this plan.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.