排查将 Azure 资源移到新的资源组或订阅时遇到的问题Troubleshoot moving Azure resources to new resource group or subscription

本文提供了一些建议来帮助解决在移动资源时遇到的问题。This article provides suggestions to help resolve problems when moving resources.

升级订阅Upgrade a subscription

如果确实想要升级 Azure 订阅(例如从免费切换到标准的预先支付套餐),则需要转换订阅。If you actually want to upgrade your Azure subscription (such as switching from free to Standard Pay-in-Advance Offer), you need to convert your subscription.

如果无法转换订阅,请创建 Azure 支持请求If you can't convert the subscription, create an Azure support request. 选择“订阅管理” 作为问题类型。Select Subscription Management for the issue type.

服务限制Service limitations

有些服务在移动资源时需要注意额外的事项。Some services require additional considerations when moving resources. 如果要移动以下服务,请务必查看指南和限制。If you're moving the following services, make sure you check the guidance and limitations.

大型请求Large requests

在可能的情况下,将大型移动分为单独的移动操作。When possible, break large moves into separate move operations. 在一次操作中有 800 多项资源时,资源管理器会立即返回错误。Resource Manager immediately returns an error when there are more than 800 resources in a single operation. 但是,移动 800 项以下的资源也可能因超时而失败。However, moving less than 800 resources may also fail by timing out.

资源未处于成功状态Resource not in succeeded state

如果收到一条错误消息,指出由于资源未处于成功状态而无法移动资源,则它可能实际上是阻止移动的依赖资源。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. 通常,错误代码为 MoveCannotProceedWithResourcesNotInSucceededStateTypically, the error code is MoveCannotProceedWithResourcesNotInSucceededState.

如果源或目标资源组包含虚拟网络,则会在移动过程中检查虚拟网络的所有依赖资源的状态。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.

收到此错误时,你有两个选择。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.

后续步骤Next steps

有关用于移动资源的命令,请参阅将资源移到新资源组或订阅For commands to move resources, see Move resources to new resource group or subscription.