Migrate VM from one azure tenant to another with some replication tech

SP 0 Reputation points
2023-03-20T14:15:27.43+00:00

Hello,

I want to migrate a VM from one tenant to another. But, here I do not want to use the copy/paste disk option. Is there a software we can use for replication maybe?

Thank You

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,932 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 18,781 Reputation points
    2023-03-21T19:58:34.4566667+00:00

    Hello @SP

    Thank you for reaching out to the Microsoft Q&A platform. Firstly, there is no direct migration approach in azure for tenant-to-tenant migrations.
    Let me go ahead and explain how it works, Tenant contains Identities but not resources (like VMs, Storage Accounts, Key Vaults etc.). Resources are always created under subscription(s). A subscription can be associated with one tenant at a given point in time. So, when you say "Migrate VM from one tenant to another tenant", you move the VM from a subscription associated with one tenant to another subscription associated with the other tenant.

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

    If you're looking to migrate several resources, I would recommend creating a separate migration subscription under the current tenant which may be later 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
    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, one such method has been detailed here https://darawtechie.com/2021/07/19/move-an-azure-vm-to-another-tenant/

    Let me know if you have any additional questions.

    If this does answer your question, please accept it as the answer as a token of appreciation.

    0 comments No comments