针对应用服务资源的移动指南Move guidance for App Service resources

移动应用服务资源的步骤各不相同,具体取决于是在订阅内移动资源,还是将资源移到新的订阅。The steps to move App Service resources differ based on whether you're moving the resources within a subscription or to a new subscription.

在同一订阅中移动Move in same subscription

_在同一订阅中_移动 Web 应用时,无法移动第三方 SSL 证书。When moving a Web App within the same subscription , you can't move third-party SSL certificates. 不过,可以将 Web 应用移动到新的资源组而不移动其第三方证书,并且,应用的 SSL 功能仍然可以工作。However, you can move a Web App to the new resource group without moving its third-party certificate, and your app's SSL functionality still works.

如果希望随 Web 应用移动 SSL 证书,请执行以下步骤:If you want to move the SSL certificate with the Web App, follow these steps:

  1. 从 Web 应用中删除第三方证书,但保留证书的副本Delete the third-party certificate from the Web App, but keep a copy of your certificate
  2. 移动 Web 应用。Move the Web App.
  3. 将第三方证书上传到移动后的 Web 应用。Upload the third-party certificate to the moved Web App.

跨订阅移动Move across subscriptions

在订阅之间 移动 Web 应用时存在以下限制:When moving a Web App across subscriptions , the following limitations apply:

  • 目标资源组中不能有任何现有的应用服务资源。The destination resource group must not have any existing App Service resources. 应用服务资源包括:App Service resources include:
    • Web 应用Web Apps
    • 应用服务计划App Service plans
    • 上传或导入的 SSL 证书Uploaded or imported SSL certificates
    • 应用服务环境App Service Environments
  • 资源组中的所有应用服务资源必须一起移动。All App Service resources in the resource group must be moved together.
  • 只能从最初创建应用服务资源的资源组中移动它们。App Service resources can only be moved from the resource group in which they were originally created. 如果应用服务资源不再位于其原始资源组中,请将其移回其原始资源组。If an App Service resource is no longer in its original resource group, move it back to its original resource group. 然后,在订阅之间移动资源。Then, move the resource across subscriptions.

移动应用服务证书Move App Service Certificate

可将应用服务证书移动到新的资源组或订阅。You can move your App Service Certificate to a new resource group or subscription. 如果应用服务证书已绑定到某个 Web 应用,必须先执行一些步骤,然后才能将资源移到新的订阅中。If your App Service Certificate is bound to a web app, you must take some steps before moving the resources to a new subscription. 移动资源之前,请在 Web 应用中删除 SSL 绑定和专用证书。Delete the SSL binding and private certificate from the web app before moving the resources. 应用服务证书不需删除,只需删除 Web 应用中的专用证书。The App Service Certificate doesn't need to be deleted, just the private certificate in the web app.

移动支持Move support

若要确定可以移动哪些应用服务资源,请查看以下项的移动支持状态:To determine which App Service resources can be moved, see move support status for:

后续步骤Next steps

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