Move of resources between 2 different tenants (Subscription A in tenant A and Subscription B in tenant B)

kumar kaushal 176 Reputation points
2021-08-07T21:45:53.913+00:00

The Azure PowerShell module includes the Move-AzureRmResource cmdlet that allows you to move a resource to a different resource group or subscription, but it requires the subscriptions to be in the same tenant.

I have created a VM -->Took the snapshot of the OS disk and the data disk -->Then created a disk out of that snapshot .

Now this is a resource that was created.

I want to move these 2 DISK resource and the data disk resource to a different subscription in a different Tenant . How can we achieve that ?

I have another question as well When we move the resources within subscription or we initiate a move of the resources/resources within subscription who takes cares of this Move ? Is it azure resource manager and how does it takes care ?

So we are moving the resources --.>Is that the resources are moved and they they are moved by making use azure Backbone network ?What actually happens at the backend .. i only understand that we basically change the resource id within the properties of the resource

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

6 answers

Sort by: Most helpful
  1. Rakesh Kumar 456 Reputation points
    2024-05-03T06:18:16.45+00:00

    Hi All,

    Thanks for your response. we have followed the below below process as per our requirement. Hope it will help someone.

    Our requirement - Move all resources from one resource group and single resource from another resource group between tenant to tenant

    Our solutions:

    1. we have created one user with global admin rights in source tenant and given ownership to source and target subscription in both tenant along with global admin rights.
    2. we created one Pay-As-You-Go subscription as transfer subscription in source tenant using new ID with help of credit card as existing subscription was created by CSP partner
    3. we have taken snapshot of resources and restored in Pay-As-You-Go subscription due to same VLAN was used for all resource groups in existing tenant.
    4. Once restore completed then we putted down the all resources in existing subscription and enabled the moved resources in Pay-As-You-Go subscription. tested the application, DBs and access.
    5. when testing completed by application team then we changed the tenant using change directory option for Pay-As-You-Go subscription.
    6. After couple of hours Pay-As-You-Go subscription disappeared from source tenant and reflected in target tenant. Note: for couple of hours Pay-As-You-Go subscription was not visible to target tenant under subscription service so we have taken the ownership through dashboard in Azure portal of target tenant using elevated access. this issue happens sometime as permission gets removed automatically when you do the tenant to tenant transfer of resources.
    7. We did the complete test once again and when satisfied then move all resource to the target subscription in target tenant.
    8. Finally we did the cleanup from source tenant and target tenant.
    0 comments No comments