Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move Azure resources from a directory to another directory

In my Azure account, I have multiple directories () associated to my personal Microsoft account.

see image

The directory in the middle, that was completely blackened, belongs to someone else and the subscription was shared to me as Owner. Is it possible to move any resource that I will deploy in that directory to be transferred in any of the two other "gmail" directories there?

For example, I need to move it because the subscription from that directory in the middle expires or was canceled.

like image 803
cjaaaaaaaaaay Avatar asked Jun 28 '17 12:06

cjaaaaaaaaaay


People also ask

Can you move resources between subscriptions Azure?

You can move Azure resources to either another Azure subscription or another resource group under the same subscription. You can use the Azure portal, Azure PowerShell, Azure CLI, or the REST API to move resources. To learn more, see Move resources to a new resource group or subscription.


2 Answers

There are few restrictions in place which has to be taken into consideration prior to migrating any resource in Azure. It is outlined here in detail: Checklist Before Moving Resources

Here is a snippet from the above documentation which should help you.

The source and destination subscriptions must exist within the same Azure Active Directory tenant.

If the tenant IDs for the source and destination subscriptions are not the same, you can attempt to change the directory for the subscription. However, this option is only available to Service Administrators who are signed in with a Microsoft account (not an organizational account).

Hope this helps!

like image 97
Kaushal Kumar Panday Avatar answered Oct 11 '22 16:10

Kaushal Kumar Panday


There are two steps involved.

Like Kaushal said, the source and destination subscriptions must exist within the same Azure Active Directory tenant.

However, the subscriptions may be moved between AD tenants. There is a handy button "Change Directory" on the subscription level. See detailed instructions here. Of course, it might not be always possible, but you are saying that the old subscription is irrelevant.

Next step, move the resources between subscriptions, now in the same directory. See detailed instructions here.

like image 44
Vadim Berman Avatar answered Oct 11 '22 17:10

Vadim Berman