在不同的 Azure 资源组中共享 App Service 计划

Share App Service plan in different azure resource group

我在不同的资源组中有两个 Web 应用程序。我想使用共享的应用程序服务计划。请指导如何做到这一点,当我尝试使用“更改服务计划”时,我看不到另一个资源组服务计划。两个资源组都在同一区域。当我尝试创建应用服务计划时,我看不到作为共享资源的选项。

无法将应用服务移动到另一个资源组中的应用服务计划。

You can move an app to another App Service plan, as long as the source plan and the target plan are in the same resource group and geographical region.

附加信息:

Azure deploys each new App Service plan into a deployment unit, internally called a webspace. Each region can have many webspaces, but your app can only move between plans that are created in the same webspace. An App Service Environment is an isolated webspace, so apps can be moved between plans in the same App Service Environment, but not between plans in different App Service Environments.

You can’t specify the webspace you want when creating a plan, but it’s possible to ensure that a plan is created in the same webspace as an existing plan. In brief, all plans created with the same resource group and region combination are deployed into the same webspace. For example, if you created a plan in resource group A and region B, then any plan you subsequently create in resource group A and region B is deployed into the same webspace. Note that plans can’t move webspaces after they’re created, so you can’t move a plan into “the same webspace” as another plan by moving it to another resource group.

参考:https://docs.microsoft.com/en-us/azure/app-service/app-service-plan-manage#move-an-app-to-another-app-service-plan

我来不及表演了,但仍然 - 至少可以从另一个资源组(尽管不是地理区域)使用应用服务计划创建应用服务。

您可以从这里获取一些详细信息:

https://praveenkumarsreeram.com/2019/09/11/share-azure-app-service-plan-across-resource-groups/