SOLVED
Home

Move virtual machine between different accounts

%3CLINGO-SUB%20id%3D%22lingo-sub-76950%22%20slang%3D%22en-US%22%3EMove%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-76950%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20guys!%3CBR%20%2F%3EDo%20you%20know%20if%20it%20is%20possible%20to%20move%20a%20virtual%20machine%20to%20another%20Azure%20account%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-76950%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECompute%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVirtual%20Machine%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-236102%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-236102%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20have%20not%20tested%20this%20procedure%20with%20Linux%20VMs%2C%20but%20I%20recommend%20that%20you%20do%20a%20test%20and%20if%20you%20can%20not%20find%20it%2C%20I%20believe%20you%20can%20find%20the%20most%20appropriate%20procedure%20in%20the%20same%20place%20where%20the%20procedure%20I%20recommended%20for%20Windows%20VMs%20is.%3CBR%20%2F%3EGood%20luck%20and%20sucess!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-234173%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-234173%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20about%20Linux%20VMs.%20Does%20the%20same%20process%20replicate%20linux%20VMs%20too%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-154169%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-154169%22%20slang%3D%22en-US%22%3EThanks%20for%20very%20helpful%20information%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-119947%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-119947%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20the%20both%20subscriptions%20are%20in%20same%20tenant%20you%20can%20migrate%20VMs%20between%20subscriptions.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUse%20following%20doc%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fwindows%2Fmove-vm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fwindows%2Fmove-vm%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20want%20to%20move%20resources%20between%20two%20tenents%20then%20you%20have%20to%20use%20alternative%20method.%20We%20can%20use%20Azure%20Storage%20explore%20to%20copy%20VHDs%20from%20one%26nbsp%3BSA%20to%20other%20SA%20in%20different%20tenant.%20Then%20using%20PowerShell%20or%20Azure%20CLI%20script%20we%20can%20create%20a%20VM%20from%20that%20VHD.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-104948%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-104948%22%20slang%3D%22en-US%22%3E%3CP%3E%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-104902%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-104902%22%20slang%3D%22en-US%22%3EThanks%20for%20posting%20a%20great%20ariticle%3Athumbs_up%3A%3Athumbs_up%3A%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-104883%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-104883%22%20slang%3D%22en-US%22%3E%3CP%3EWelcome%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-104736%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-104736%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20links.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-104726%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-104726%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20try%20the%20procedures%20of%20the%20following%20links%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fwindows%2Fmove-vm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fwindows%2Fmove-vm%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fwindows%2Fprepare-for-upload-vhd-image%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fwindows%2Fprepare-for-upload-vhd-image%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-104725%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-104725%22%20slang%3D%22en-US%22%3E%3CP%3EAre%20you%20able%20to%20understad%20what%20to%20do%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-104724%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-104724%22%20slang%3D%22en-US%22%3EThank%20you!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-104717%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-104717%22%20slang%3D%22en-US%22%3E%3CP%3EHow%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20share%20steps%20how%20to%20do%20so%3F%20I%20am%20trying%20to%20share%20a%20subscription%20but%20nothing%20is%20happening.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-77261%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-77261%22%20slang%3D%22en-US%22%3EHi%2C%20There%20is%20no%20direct%20way%20to%20migrate%20a%20vm%20from%20One%20Account%20to%20an%20other%2C%20of%20we%20speack%20about%20separate%20subscription%20from%20different%20owner.%20There%20a%20to%20possible%20ways%20-%20Grant%20the%20user%20of%20One%20subscription%20rights%20in%20the%20other%20subscription%20so%20that%20this%20user%20is%20able%20to%20use%20both%20subscription.%20Than%20you%20can%20move%20a%20vm%20and%20all%20relaxed%20resources%20to%20the%20other%20subscription.%20The%20other%20way%20is%20to%20just%20move%20the%20vhd-files%20from%20one%20storage%20account%20to%20an%20other%20by%20using%20e.g.%20Azcopy.%20In%20this%20case%20you%20only%20need%20the%20Security%20Information%20of%20the%20Storage%20account.%20But%20After%20the%20copy%20you%20have%20to%20rebuild%20the%20vm.%20Regards%20Niels%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-813525%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20virtual%20machine%20between%20different%20accounts%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-813525%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F8343%22%20target%3D%22_blank%22%3E%40Niels%20Ophey%3C%2FA%3EDoes%20this%20work%20for%20real%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Vinícius Barreto
Occasional Contributor

Hello guys!
Do you know if it is possible to move a virtual machine to another Azure account?

14 Replies
Solution
Hi, There is no direct way to migrate a vm from One Account to an other, of we speack about separate subscription from different owner. There a to possible ways - Grant the user of One subscription rights in the other subscription so that this user is able to use both subscription. Than you can move a vm and all relaxed resources to the other subscription. The other way is to just move the vhd-files from one storage account to an other by using e.g. Azcopy. In this case you only need the Security Information of the Storage account. But After the copy you have to rebuild the vm. Regards Niels

How,

 

Can you share steps how to do so? I am trying to share a subscription but nothing is happening.

 

Thanks in advance. 

Are you able to understad what to do?

Thanks for the links. 

Thanks for posting a great ariticle:thumbs_up::thumbs_up:

If the both subscriptions are in same tenant you can migrate VMs between subscriptions. 

 

Use following doc 

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/move-vm

 

If you want to move resources between two tenents then you have to use alternative method. We can use Azure Storage explore to copy VHDs from one SA to other SA in different tenant. Then using PowerShell or Azure CLI script we can create a VM from that VHD. 

Thanks for very helpful information

What about Linux VMs. Does the same process replicate linux VMs too?

Hello, I have not tested this procedure with Linux VMs, but I recommend that you do a test and if you can not find it, I believe you can find the most appropriate procedure in the same place where the procedure I recommended for Windows VMs is.
Good luck and sucess!

@Niels OpheyDoes this work for real? 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies