Recently encountered a lot of cases that need to migrate VMS between 2 different azure subscriptions, which will be written out for your reference using the Azure Copy Tool's Migration method.
Advantage: Data migration is very fast and requires no redeployment of applications and databases, only the VM is recreated from disk.
Disadvantage: You need to reconfigure the vnet and VM IPs to recreate the VMS (data remains in the VHD)
1. Download--azure copy:https://azure.microsoft.com/en-us/documentation/articles/storage-use-azcopy/
On the page also has the detailed use introduction
2. Get 2 subscriptions for manage KEY
In the source subscription, click Save----The storage account you want to migrate-----manage access KEYs.
650) this.width=650; "title=" clip_image002 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" clip_image002 "src=" http://s3.51cto.com/wyfs02/M01/7E/92/ Wkiom1cen1cd3z57aageifymawq005.jpg "" 977 "height=" 787 "/>
Get to the secret.
650) this.width=650; "title=" clip_image004 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" clip_image004 "src=" http://s3.51cto.com/wyfs02/M02/7E/92/ Wkiom1cen1oxeubwaafbmptguiq707.jpg "" 977 "height=" 725 "/>
Use the same method to get the storage account key for the target subscription.
Gets the container URL and destination container URL to migrate (the entire container is migrated directly, depending on the scenario, you can migrate only the specified VHD)
Click the name of the container where you want to migrate the VHD, and get the link at the URL.
650) this.width=650; "title=" clip_image006 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" clip_image006 "src=" http://s3.51cto.com/wyfs02/M00/7E/92/ Wkiom1cen1xcgewzaadfub0qod8547.jpg "" 1114 "height=" 414 "/>
3. Start the migration
To install and open azcopy, enter the following command:
Azcopy/source:https://myaccount.blob.core.windows.net/mycontainer/dest:https://myaccount.blob.core.windows.net /mycontainer/sourcekey:key/destkey:key/s
650) this.width=650; "title=" clip_image008 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" clip_image008 "src=" http://s3.51cto.com/wyfs02/M00/7E/8E/ Wkiol1ceoawrszljaaj5vkhkif0027.jpg "" 1112 "height=" 436 "/>
There are 1 VHD files in my container and you can see that it takes a short time (all in the east side), and if it's a migration between Beijing and Shanghai, it will take a little longer.
4. Create a VM in the target subscription.
Click on the virtual machine----disk and select Create below
650) this.width=650; "title=" clip_image010 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" clip_image010 "src=" Http://s3.51cto.com/wyfs02/M01/7E/92/wKiom1cEn1zh_ Z5maahx9g2kvpu521.jpg "" 1101 "height=" 651 "/>
Enter the name of the disk
Select the VHD that you just migrated after you click Open at the VHD URL
Tick already included operating system
Choose your OS Version
650) this.width=650; "title=" clip_image012 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; margin:0px; padding-right:0px "border=" 0 "alt=" clip_image012 "src=" http://s3.51cto.com/wyfs02/M01/7E/8E/ Wkiol1ceoavd0xh5aaeqeavcxvk509.jpg "" 999 "height=" 782 "/>
Create VMs
Choose a custom way
Select my disk in the mirror---the VHD you just created
Next, complete the creation of the VM.
650) this.width=650; "title=" clip_image014 "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" clip_image014 "src=" http://s3.51cto.com/wyfs02/M02/7E/8E/ Wkiol1ceoa7zhwkhaaes5zk-wv0705.jpg "" 1115 "height=" 581 "/>
Remember Azure VM migrations (between different subscriptions)