question

AmitBadgujar-9672 avatar image
2 Votes"
AmitBadgujar-9672 asked JoshuaLovelace-5267 answered

How to migrate Azure VM from one tenant to another tenant

I want to Move/Migrate Azure VM from one tenant to another tenant.

Could someone please provide me guide link how should I do this ?

Note :

I'm not asking for Move VM from one subscription or region to another subscription or region.

Here I'm only asking for, Move VM from one tenant to another tenant.

azure-active-directoryazure-ad-connectazure-ad-tenant
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Amit,

I think this is what you're looking for: https://darawtechie.com/2021/07/19/move-an-azure-vm-to-another-tenant/


Kind regards,

Frank

0 Votes 0 ·
amanpreetsingh-msft avatar image
2 Votes"
amanpreetsingh-msft answered IainFrankish-9895 commented

Hello @AmitBadgujar-9672 · Welcome to Q&A platform and thank you for your query.

Tenant contain Identities but not resources (like VMs, Storage Accounts, Key Vaults etc.). Resources are always created under subscription(s). A subscription can be associated to one tenant at a given point in time. So, when you say "Move VM from one tenant to another tenant", you actually move the VM from a subscription associated with one tenant to another subscription associated with the other tenant.

Additional info: https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-subscriptions-associated-directory


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Op specifically asked for the movement between different tennacy (with their own subscriptions). At no point was it suggested that an AD could or indeed was shared. Therefore you have provided an answer for a very specific situation and not that which was requested initially.

1 Vote 1 ·

Thanks for the explanation. I'm new to Azure. Could you please guide me how to move the VM from a subscription associated with one tenant to another subscription associated with the other tenant ?

0 Votes 0 ·

Hi @AmitBadgujar-9672 · You can refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/move-vm for moving VM from one subscription to another subscription. I have already provided the link to associate a subscription to a tenant in my answer above.

0 Votes 0 ·
TomHowarth-3462 avatar image
1 Vote"
TomHowarth-3462 answered

The answer does not reflect what the OP actually asked, the question was how to move a resource (VM) from one subscription in Tenancy A to another subscription in Tenancy B, not how to move a subscription between tenancies. Moving a subscription from Tenancy A to Tenancy B just to move a resource is like using a sledgehammer to crack a walnut, it will work but it is over kill.

Please provide an answer on How to simply move a resource from one tenancy to another.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PaulDeLasaux-1968 avatar image
0 Votes"
PaulDeLasaux-1968 answered

This question is not answered.

"Howto migrate a VM between two subscriptions in separate tenants?" is the clear question above.

Please provide an answer to the question above as there are additional engineers and technicians that are facing this issue everyday.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoshuaLovelace-5267 avatar image
1 Vote"
JoshuaLovelace-5267 answered

@amanpreetsingh-msft has provided the correct answer. Resources may not be moved between tenants - Subscriptions may.

If you're looking to migrate a number of resources, I would recommend creating a separate migration Subscription which may be re-associated to the target tenant.

If you're looking to move a single VM, my suggestion would be to:
1. Pull an ARM template of the resource - search for docs on how to do this, it's not difficult.
2. Redeploy a copy of the resource using the ARM template in the target tenant wherever you like.
3. Copy the data of the VM to the newly-redeployed VM in the target tenant. There are a variety of methods to do this, but the article referenced by @FrankvanGraafeiland-1586 would be simple and sufficient for anybody.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.