Skip to content

Commit eeeddc8

Browse files
committed
update
1 parent fd61d45 commit eeeddc8

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ Some important steps precede moving a resource. You can avoid errors if you veri
3737
1. The source and destination subscriptions must exist within the same [Microsoft Entra tenant](../../active-directory/develop/quickstart-create-new-tenant.md). Use the Azure CLI or PowerShell to check that both subscriptions have the same tenant ID.
3838

3939
# [Azure CLI](#tab/azure-cli)
40-
40+
4141
```azurecli-interactive
4242
az account show --subscription <your-source-subscription> --query tenantId
4343
az account show --subscription <your-destination-subscription> --query tenantId
4444
```
45-
45+
4646
# [Azure PowerShell](#tab/azure-powershell)
47-
47+
4848
```azurepowershell-interactive
4949
(Get-AzSubscription -SubscriptionName <your-source-subscription>).TenantId
5050
(Get-AzSubscription -SubscriptionName <your-destination-subscription>).TenantId
5151
```
52-
52+
5353
---
54-
54+
5555
If the tenant IDs for the source and destination subscriptions don't match, use the following methods to reconcile them:
56-
56+
5757
- [Transfer billing ownership of an Azure subscription](../../cost-management-billing/manage/billing-subscription-transfer.md#transfer-billing-ownership-of-an-azure-subscription).
5858
- [Associate or add an Azure subscription to your Microsoft Entra tenant](../../active-directory/fundamentals/active-directory-how-subscriptions-associated-directory.md).
5959
@@ -64,7 +64,7 @@ Some important steps precede moving a resource. You can avoid errors if you veri
6464
1. Some services have specific limitations or requirements when moving resources. Check the following move guidance before moving resources within these services:
6565
6666
- If you're using Azure Stack Hub, you can't move resources between groups.
67-
67+
6868
- [Azure App Services](./move-limitations/app-service-move-limitations.md)
6969
- [Azure DevOps Services](/azure/devops/organizations/billing/change-azure-subscription?toc=/azure/azure-resource-manager/toc.json)
7070
- [Classic deployment model](./move-limitations/classic-model-move-limitations.md) for classic compute, storage, virtual networks, and cloud services
@@ -163,17 +163,17 @@ Moving resources from one subscription to another is a three-step process. To il
163163
164164
1. The portal validates that the resources can be moved. Wait for validation to complete.
165165
166-
:::image type="content" source="./media/move-resource-group-and-subscription/validation.png" alt-text="Screenshot of the Azure portal showing the validation process for the move operation.":::
166+
:::image type="content" source="./media/move-resource-group-and-subscription/validation.png" alt-text="Screenshot of the Azure portal showing the validation process for the move operation.":::
167167
168168
1. When validation completes successfully, select **Next**.
169169
170170
1. Acknowledge that you need to update tools and scripts for these resources. To start moving the resources, select **Move**.
171171
172-
:::image type="content" source="./media/move-resource-group-and-subscription/acknowledge-change.png" alt-text="Screenshot of the Azure portal where the user acknowledges the need to update tools and scripts before starting the move operation.":::
172+
:::image type="content" source="./media/move-resource-group-and-subscription/acknowledge-change.png" alt-text="Screenshot of the Azure portal where the user acknowledges the need to update tools and scripts before starting the move operation.":::
173173
174174
1. The Azure portal notifies you when the move completes.
175175
176-
:::image type="content" source="./media/move-resource-group-and-subscription/view-notification.png" alt-text="Screenshot of the Azure portal displaying a notification with the results of the move operation.":::
176+
:::image type="content" source="./media/move-resource-group-and-subscription/view-notification.png" alt-text="Screenshot of the Azure portal displaying a notification with the results of the move operation.":::
177177
178178
### Use the Azure CLI
179179
@@ -415,19 +415,19 @@ Specify the target resource group and resources to move in the body of the reque
415415

416416
## Frequently asked questions
417417

418-
**My resource move operation that usually takes a few minutes is running for almost an hour. Is something wrong?**
418+
### My resource move operation that usually takes a few minutes is running for almost an hour. Is something wrong?
419419

420420
Moving a resource is a complex operation with different phases. It can involve more than just the resource provider of the resource you're trying to move. Azure Resource Manager allows a move operation four hours to finish because of the dependencies between resource providers. This duration gives them time to recover from transient issues. If your move request is within the four-hour period, the operation keeps trying to complete and might succeed. The operation locks the source and destination resource groups during this time to avoid consistency issues.
421421

422-
**Why is my resource group locked for four hours during resource move?**
422+
### Why is my resource group locked for four hours during resource move?
423423

424424
- Move operations are allowed four hours to complete. The operation locks the source and destination resource groups during this time to prevent them from being modified.
425425

426426
- There are two phases in a move request. Resources move during the first phase, and resource providers that depend on the resources being moved are notified during the second phase. A resource group can be locked for all four hours when a resource provider fails either phase. Resource Manager initiates any failed steps during the span of the move operation.
427427

428428
- Resource Manager unlocks both resource groups if a resource doesn't move within four hours. Resources that move successfully are in the destination resource group. Resources that fail to move remain in the source resource group.
429429

430-
**What are the implications of the source and destination resource groups being locked during the resource move?**
430+
### What are the implications of the source and destination resource groups being locked during the resource move?
431431

432432
The lock prevents you from deleting either resource group. The lock also prevents you from creating a new resource, deleting a resource, or updating a resource's properties within each resource group (for example, changing a virtual machine's size).
433433

@@ -441,9 +441,9 @@ In the preceding image, the virtual machine resource belongs to a resource group
441441

442442
Additionally, the source and the destination resource groups can't participate in other move operations simultaneously during a resource move. For example, if you're moving resources from resource group A to resource group B, both resource group A and resource group B can't be involved in another move operation at the same time. You can't simultaneously move resources to or from resource group C. This restriction prevents multiple conflicting operations from locking resource groups during the move process.
443443

444-
**What does the error code "MissingMoveDependentResources" mean?**
444+
### What does the error code "MissingMoveDependentResources" mean?
445445

446-
When you move a resource, its dependent resources must exist in the destination resource group or subscription, or be included in the move request. You get the **MissingMoveDependentResources** error code when a dependent resource doesn't meet this requirement. The error message provides details about the dependent resource that you need to include in the move request.
446+
When you move a resource, its dependent resources must exist in the destination resource group or subscription, or be included in the move request. You get the ### MissingMoveDependentResources** error code when a dependent resource doesn't meet this requirement. The error message provides details about the dependent resource that you need to include in the move request.
447447

448448
For example, moving a virtual machine could require moving seven resource types with three different resource providers. Those resource providers and types are:
449449

@@ -462,29 +462,29 @@ For example, moving a virtual machine could require moving seven resource types
462462

463463
Another common example involves moving a virtual network where you might have to move several other resources associated with that virtual network. The move request could require moving public IP addresses, route tables, virtual network gateways, network security groups, and other resources. A virtual network gateway should be in the same resource group as its virtual network since they can't move separately.
464464

465-
**What does the error code "RequestDisallowedByPolicy" mean?**
465+
### What does the error code "RequestDisallowedByPolicy" mean?
466466

467-
Resource Manager validates your move request before attempting a move. This validation includes checking policies defined for the resources involved in the move. For example, the validation fails when you're attempting to move a key vault but your organization has a policy to deny creating a key vault in the target resource group. The returned error code is **RequestDisallowedByPolicy**.
467+
Resource Manager validates your move request before attempting a move. This validation includes checking policies defined for the resources involved in the move. For example, the validation fails when you're attempting to move a key vault but your organization has a policy to deny creating a key vault in the target resource group. The returned error code is ### RequestDisallowedByPolicy**.
468468

469469
For more information about policies, see [What is Azure Policy?](../../governance/policy/overview.md).
470470

471-
**Why can't I move some resources in Azure?**
471+
### Why can't I move some resources in Azure?
472472

473473
Not all Azure resources allow move operations.
474474

475-
**How many resources can I move in one operation?**
475+
### How many resources can I move in one operation?
476476

477477
Separate large moves into different move operations when possible. Resource Manager immediately returns an error when there are more than 800 resources in a single operation. However, moving fewer than 800 resources can also fail by timing out.
478478

479-
**What is the meaning of the error that a resource isn't in a "succeeded" state?**
479+
### What is the meaning of the error that a resource isn't in a "succeeded" state?
480480

481481
When you get an error message indicating that you can't move a resource because it isn't in a **Succeeded** state, it might be because a dependent resource is blocking the move. Typically, the error code is **MoveCannotProceedWithResourcesNotInSucceededState**.
482482

483483
If the source or target resource group contains a virtual network, the states of all resources that depend on that virtual network are checked during the move. This check includes resources that directly and indirectly depend on the network. The move is blocked if any resources aren't in a succeeded state. For example, if a virtual machine using a virtual network that doesn't report a succeeded state, the move is blocked. The move is blocked even when the virtual machine isn't one of the resources being moved. The move is also blocked even when the virtual machine isn't in the source or destination resource group.
484484

485485
To resolve this issue, move your resources to a resource group that doesn't have a virtual network or [contact support](/azure/azure-portal/supportability/how-to-create-azure-support-request).
486486

487-
**Can I move a resource group to a different subscription?**
487+
### Can I move a resource group to a different subscription?
488488

489489
No, you can't move a resource group to a new subscription. But, you can move all resources in a resource group to a resource group in another subscription. Settings such as tags, role assignments, and policies don't transfer automatically from the original resource group to the destination resource group. You need to apply these settings manually to the new resource group.
490490

0 commit comments

Comments
 (0)