You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/management/move-resource-group-and-subscription.md
+66-66Lines changed: 66 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,93 +36,93 @@ There are some important steps to do before moving a resource. By verifying thes
36
36
37
37
1. The source and destination subscriptions must exist within the same [Microsoft Entra tenant](../../active-directory/develop/quickstart-create-new-tenant.md). To check that both subscriptions have the same tenant ID, use Azure PowerShell or Azure CLI.
38
38
39
-
# [CLI](#tab/CLI)
40
-
41
-
```azurecli-interactive
42
-
az account show --subscription <your-source-subscription> --query tenantId
43
-
az account show --subscription <your-destination-subscription> --query tenantId
If the tenant IDs for the source and destination subscriptions aren't the same, use the following methods to reconcile the tenant IDs:
56
-
57
-
*[Transfer ownership of an Azure subscription to another account](../../cost-management-billing/manage/billing-subscription-transfer.md)
58
-
*[How to associate or add an Azure subscription to Microsoft Entra ID](../../active-directory/fundamentals/active-directory-how-subscriptions-associated-directory.md)
39
+
# [CLI](#tab/CLI)
40
+
41
+
```azurecli-interactive
42
+
az account show --subscription <your-source-subscription> --query tenantId
43
+
az account show --subscription <your-destination-subscription> --query tenantId
If the tenant IDs for the source and destination subscriptions aren't the same, use the following methods to reconcile the tenant IDs:
56
+
57
+
* [Transfer ownership of an Azure subscription to another account](../../cost-management-billing/manage/billing-subscription-transfer.md)
58
+
* [How to associate or add an Azure subscription to Microsoft Entra ID](../../active-directory/fundamentals/active-directory-how-subscriptions-associated-directory.md)
59
59
60
60
1. If you're attempting to move resources to or from a Cloud Solution Provider (CSP) partner, see [Transfer Azure subscriptions between subscribers and CSPs](../../cost-management-billing/manage/transfer-subscriptions-subscribers-csp.yml).
61
61
62
62
1. The resources you want to move must support the move operation. For a list of which resources support move, see [Move operation support for resources](move-support-resources.md).
63
63
64
64
1. Some services have specific limitations or requirements when moving resources. If you're moving any of the following services, check that guidance before moving.
65
65
66
-
* If you're using Azure Stack Hub, you can't move resources between groups.
* To move an Azure subscription to a new management group, see [Move subscriptions](../../governance/management-groups/manage.md#move-management-groups-and-subscriptions).
66
+
* If you're using Azure Stack Hub, you can't move resources between groups.
* To move an Azure subscription to a new management group, see [Move subscriptions](../../governance/management-groups/manage.md#move-management-groups-and-subscriptions).
75
75
76
76
1. The destination subscription must be registered for the resource provider of the resource being moved. If not, you receive an error stating that the **subscription is not registered for a resource type**. You might see this error when moving a resource to a new subscription, but that subscription has never been used with that resource type.
77
77
78
-
# [CLI](#tab/CLI)
79
-
80
-
To get the registration status:
81
-
82
-
```azurecli-interactive
83
-
az account set -s <destination-subscription-name-or-id>
84
-
az provider list --query "[].{Provider:namespace, Status:registrationState}" --out table
1. Before moving the resources, check the subscription quotas for the subscription you're moving the resources to. If moving the resources means the subscription exceeds its limits, you need to review whether you can request an increase in the quota. For a list of limits and how to request an increase, see [Azure subscription and service limits, quotas, and constraints](../../azure-resource-manager/management/azure-subscription-service-limits.md).
111
111
112
112
1. The account moving the resources must have at least the following permissions:
113
113
114
-
***Microsoft.Resources/subscriptions/resourceGroups/moveResources/action** on the source resource group.
115
-
***Microsoft.Resources/subscriptions/resourceGroups/write** on the destination resource group.
114
+
* **Microsoft.Resources/subscriptions/resourceGroups/moveResources/action** on the source resource group.
115
+
* **Microsoft.Resources/subscriptions/resourceGroups/write** on the destination resource group.
116
116
117
117
1. If you move a resource that has an Azure role assigned directly to the resource (or a child resource), the role assignment isn't moved and becomes orphaned. After the move, you must re-create the role assignment. Eventually, the orphaned role assignment is automatically removed, but we recommend removing the role assignment before the move.
118
118
119
-
For information about how to manage role assignments, see [List Azure role assignments](../../role-based-access-control/role-assignments-list-portal.yml#list-role-assignments-at-a-scope) and [Assign Azure roles](../../role-based-access-control/role-assignments-portal.yml).
119
+
For information about how to manage role assignments, see [List Azure role assignments](../../role-based-access-control/role-assignments-list-portal.yml#list-role-assignments-at-a-scope) and [Assign Azure roles](../../role-based-access-control/role-assignments-portal.yml).
120
120
121
121
1. **For a move across subscriptions, the resource and its dependent resources must be located in the same resource group and they must be moved together.** For example, a VM with managed disks would require the VM and the managed disks to be moved together, along with other dependent resources.
122
122
123
-
If you're moving a resource to a new subscription, check to see whether the resource has any dependent resources, and whether they're located in the same resource group. If the resources aren't in the same resource group, check to see whether the resources can be combined into the same resource group. If so, bring all these resources into the same resource group by using a move operation across resource groups.
124
-
125
-
For more information, see [Scenario for move across subscriptions](#scenario-for-move-across-subscriptions).
123
+
If you're moving a resource to a new subscription, check to see whether the resource has any dependent resources, and whether they're located in the same resource group. If the resources aren't in the same resource group, check to see whether the resources can be combined into the same resource group. If so, bring all these resources into the same resource group by using a move operation across resource groups.
124
+
125
+
For more information, see [Scenario for move across subscriptions](#scenario-for-move-across-subscriptions).
0 commit comments