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
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -412,27 +412,27 @@ In the request body, you specify the target resource group and the resources to
412
412
413
413
## Frequently asked questions
414
414
415
-
**Question: My resource move operation, which usually takes a few minutes, has been running for almost an hour. Is there something wrong?**
415
+
###My resource move operation, which usually takes a few minutes, has been running for almost an hour. Is there something wrong?
416
416
417
417
Moving a resource is a complex operation that has different phases. It can involve more than just the resource provider of the resource you're trying to move. Because of the dependencies between resource providers, Azure Resource Manager allows 4 hours for the operation to complete. This time period gives resource providers a chance to recover from transient issues. If your move request is within the four-hour period, the operation keeps trying to complete and may still succeed. The source and destination resource groups are locked during this time to avoid consistency issues.
418
418
419
-
**Question: Why is my resource group locked for four hours during resource move?**
419
+
###Why is my resource group locked for four hours during resource move?
420
420
421
421
A move request is allowed a maximum of four hours to complete. To prevent modifications on the resources being moved, both the source and destination resource groups are locked during the resource move.
422
422
423
423
There are two phases in a move request. In the first phase, the resource is moved. In the second phase, notifications are sent to other resource providers that are dependent on the resource being moved. A resource group can be locked for the entire four hours when a resource provider fails either phase. During the allowed time, Resource Manager retries the failed step.
424
424
425
425
If a resource can't be moved within four hours, Resource Manager unlocks both resource groups. Resources that were successfully moved are in the destination resource group. Resources that failed to move are left the source resource group.
426
426
427
-
**Question: What are the implications of the source and destination resource groups being locked during the resource move?**
427
+
###What are the implications of the source and destination resource groups being locked during the resource move?
428
428
429
429
The lock prevents you from deleting either resource group, creating a new resource in either resource group, or deleting any of the resources involved in the move.
430
430
431
431
The following image shows an error message from the Azure portal when a user tries to delete a resource group that is part of an ongoing move.
432
432
433
433
:::image type="content" source="./media/move-resource-group-and-subscription/move-error-delete.png" alt-text="Screenshot of the Azure portal showing an error message when trying to delete a resource group involved in an ongoing move operation.":::
434
434
435
-
**Question: What does the error code "MissingMoveDependentResources" mean?**
435
+
###What does the error code "MissingMoveDependentResources" mean?
436
436
437
437
When you move a resource, its dependent resources must either 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 has details about the dependent resource that needs to be included in the move request.
438
438
@@ -453,29 +453,29 @@ For example, moving a virtual machine could require moving seven resource types
453
453
Another common example involves moving a virtual network. You may 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 others.
454
454
In general, a virtual network gateway must always be in the same resource group as its virtual network, they can't be moved separately.
455
455
456
-
**Question: What does the error code "RequestDisallowedByPolicy" mean?**
456
+
###What does the error code "RequestDisallowedByPolicy" mean?
457
457
458
458
Resource Manager validates your move request before attempting the move. This validation includes checking policies defined on the resources involved in the move. For example, if you're attempting to move a key vault but your organization has a policy to deny the creation of a key vault in the target resource group, validation fails and the move is blocked. The returned error code is **RequestDisallowedByPolicy**.
459
459
460
460
For more information about policies, see [What is Azure Policy?](../../governance/policy/overview.md).
461
461
462
-
**Question: Why can't I move some resources in Azure?**
462
+
###Why can't I move some resources in Azure?
463
463
464
464
Currently, not all resources in Azure support move. For a list of resources that support move, see [Move operation support for resources](move-support-resources.md).
465
465
466
-
**Question: How many resources can I move in a single operation?**
466
+
###How many resources can I move in a single operation?
467
467
468
468
When possible, break large moves into separate move operations. Resource Manager immediately returns an error when there are more than 800 resources in a single operation. However, moving less than 800 resources may also fail by timing out.
469
469
470
-
**Question: What is the meaning of the error that a resource isn't in succeeded state?**
470
+
###What is the meaning of the error that a resource isn't in succeeded state?
471
471
472
472
When you get an error message that indicates a resource can't be moved because it isn't in a succeeded state, it may actually be a dependent resource that is blocking the move. Typically, the error code is **MoveCannotProceedWithResourcesNotInSucceededState**.
473
473
474
474
If the source or target resource group contains a virtual network, the states of all dependent resources for the virtual network are checked during the move. The check includes those resources directly and indirectly dependent on the virtual network. If any of those resources are in a failed state, the move is blocked. For example, if a virtual machine that uses the virtual network has failed, the move is blocked. The move is blocked even when the virtual machine isn't one of the resources being moved and isn't in one of the resource groups for the move.
475
475
476
476
When you receive this error, you have two options. Either 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).
477
477
478
-
**Question: Can I move a resource group to a different subscription?**
478
+
###Can I move a resource group to a different subscription?
479
479
480
480
No, you can't move a resource group to a new subscription. But, you can move all of the resources in the resource group to a resource group in another subscription. Settings such as tags, role assignments, and policies aren't automatically transferred from the original resource group to the destination resource group. You need to reapply these settings to the new resource group. For more information, see [Move resources to new resource group or subscription](./move-support-resources.md).
0 commit comments