Skip to content

Commit cbcf491

Browse files
committed
update screenshots
1 parent 5beff74 commit cbcf491

File tree

4 files changed

+66
-66
lines changed

4 files changed

+66
-66
lines changed
-22.1 KB
Loading
10.4 KB
Loading
-33.7 KB
Loading

articles/azure-resource-manager/management/move-resource-group-and-subscription.md

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -36,93 +36,93 @@ There are some important steps to do before moving a resource. By verifying thes
3636

3737
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.
3838

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
44-
```
45-
46-
# [PowerShell](#tab/PowerShell)
47-
48-
```azurepowershell-interactive
49-
(Get-AzSubscription -SubscriptionName <your-source-subscription>).TenantId
50-
(Get-AzSubscription -SubscriptionName <your-destination-subscription>).TenantId
51-
```
52-
53-
---
54-
55-
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
44+
```
45+
46+
# [PowerShell](#tab/PowerShell)
47+
48+
```azurepowershell-interactive
49+
(Get-AzSubscription -SubscriptionName <your-source-subscription>).TenantId
50+
(Get-AzSubscription -SubscriptionName <your-destination-subscription>).TenantId
51+
```
52+
53+
---
54+
55+
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)
5959
6060
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).
6161
6262
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).
6363
6464
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.
6565
66-
* If you're using Azure Stack Hub, you can't move resources between groups.
67-
* [App Services move guidance](./move-limitations/app-service-move-limitations.md)
68-
* [Azure DevOps Services move guidance](/azure/devops/organizations/billing/change-azure-subscription?toc=/azure/azure-resource-manager/toc.json)
69-
* [Classic deployment model move guidance](./move-limitations/classic-model-move-limitations.md) - Classic Compute, Classic Storage, Classic Virtual Networks, and Cloud Services
70-
* [Cloud Services (extended support) move guidance](./move-limitations/classic-model-move-limitations.md)
71-
* [Networking move guidance](./move-limitations/networking-move-limitations.md)
72-
* [Recovery Services move guidance](../../backup/backup-azure-move-recovery-services-vault.md?toc=/azure/azure-resource-manager/toc.json)
73-
* [Virtual Machines move guidance](./move-limitations/virtual-machines-move-limitations.md)
74-
* 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.
67+
* [App Services move guidance](./move-limitations/app-service-move-limitations.md)
68+
* [Azure DevOps Services move guidance](/azure/devops/organizations/billing/change-azure-subscription?toc=/azure/azure-resource-manager/toc.json)
69+
* [Classic deployment model move guidance](./move-limitations/classic-model-move-limitations.md) - Classic Compute, Classic Storage, Classic Virtual Networks, and Cloud Services
70+
* [Cloud Services (extended support) move guidance](./move-limitations/classic-model-move-limitations.md)
71+
* [Networking move guidance](./move-limitations/networking-move-limitations.md)
72+
* [Recovery Services move guidance](../../backup/backup-azure-move-recovery-services-vault.md?toc=/azure/azure-resource-manager/toc.json)
73+
* [Virtual Machines move guidance](./move-limitations/virtual-machines-move-limitations.md)
74+
* To move an Azure subscription to a new management group, see [Move subscriptions](../../governance/management-groups/manage.md#move-management-groups-and-subscriptions).
7575
7676
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.
7777
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
85-
```
86-
87-
To register a resource provider:
88-
89-
```azurecli-interactive
90-
az provider register --namespace Microsoft.Batch
91-
```
92-
93-
# [PowerShell](#tab/PowerShell)
94-
95-
To get the registration status:
96-
97-
```azurepowershell-interactive
98-
Set-AzContext -Subscription <destination-subscription-name-or-id>
99-
Get-AzResourceProvider -ListAvailable | Select-Object ProviderNamespace, RegistrationState
100-
```
101-
102-
To register a resource provider:
103-
104-
```azurepowershell-interactive
105-
Register-AzResourceProvider -ProviderNamespace Microsoft.Batch
106-
```
107-
108-
---
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
85+
```
86+
87+
To register a resource provider:
88+
89+
```azurecli-interactive
90+
az provider register --namespace Microsoft.Batch
91+
```
92+
93+
# [PowerShell](#tab/PowerShell)
94+
95+
To get the registration status:
96+
97+
```azurepowershell-interactive
98+
Set-AzContext -Subscription <destination-subscription-name-or-id>
99+
Get-AzResourceProvider -ListAvailable | Select-Object ProviderNamespace, RegistrationState
100+
```
101+
102+
To register a resource provider:
103+
104+
```azurepowershell-interactive
105+
Register-AzResourceProvider -ProviderNamespace Microsoft.Batch
106+
```
107+
108+
---
109109
110110
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).
111111
112112
1. The account moving the resources must have at least the following permissions:
113113
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.
116116
117117
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.
118118
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).
120120
121121
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.
122122
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).
126126
127127
## Scenario for move across subscriptions
128128

0 commit comments

Comments
 (0)