2015-10-01 How to move Azure VM between subscriptions
I recently needed to move an Azure Virtual Machine from one subscription to another one. I read a LOT on how to do that and it looks super complicated. At the end of the day, I found an easy 3 steps way to make it, so sharing on this blog
Step 1: Move the Azure VM from one Blob storage to another one
In Microsoft Azure, when you have a blob storage, it can be attached only to 1 subscription. You can of course have multiple storage attached into a subscription. So first step is to move the VHD which is used by the VM.
For this, I used the excellent CloudBerry Explorer for Azure which you can download for free here. After installation, just register for free and you're good to go.
You'll need to add your 2 blob storage, the one you want to move the VHD from and the one you want to move the VHD to.
To find the name of the storage and the key, just go into the Azure management console and select Manage Access Keys, you'll get the info you need to setup both accounts.
Once setup, you can now have a view like this:
Stop your VM and you're good to copy/paste your VM from one storage to another.
Step 2: Create a Disk from VHD
In the management console, go to Virtual Machine then Disks
then Create
fill a name, select the VHD from the storage you just moved your VHD file to.
Step 3: Create the VM from the Disk
Go to the Virtual Machine instances
then create a New
select From Gallery
and go to Disks to select the disk you just created.
And you're good to go to run your VM!