简体   繁体   English

在不同的 Azure 资源组中共享应用服务计划

[英]Share App Service plan in different azure resource group

I have two web apps in different Resource Groups.我在不同的资源组中有两个 Web 应用程序。 I want to use a shared App Service Plan.我想使用共享应用服务计划。 Please guide how this can be done, When I try to use "Change Service Plan" I can not see another resource group service plan.请指导如何做到这一点,当我尝试使用“更改服务计划”时,我看不到另一个资源组服务计划。 Both Resource groups are in same region.两个资源组都在同一地区。 When I try to create a App Service Plan I can not see option as a shared resource.当我尝试创建应用服务计划时,我看不到作为共享资源的选项。

It is not possible to move App Service to App Service plan in another resource group.无法将应用服务移动到另一个资源组中的应用服务计划。

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.只要源计划和目标计划位于相同的资源组和地理区域,就可以将应用移动到另一个应用服务计划

Additional Info:附加信息:

Azure deploys each new App Service plan into a deployment unit, internally called a webspace. Azure 将每个新的应用服务计划部署到一个部署单元中,内部称为 Web 空间。 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.简而言之,使用相同资源组和区域组合创建的所有计划都部署到相同的 Web 空间中。 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.例如,如果您在资源组 A 和区域 B 中创建了一个计划,那么您随后在资源组 A 和区域 B 中创建的任何计划都会部署到同一个网络空间中。 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.请注意,计划在创建后无法移动网站空间,因此您无法通过将计划移动到另一个资源组来将计划移动到与另一个计划“相同的网站空间”中。

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

I am too late for the show, but still - it's possible to at least CREATE an App Service with App Service Plan from another resource group (not geographical region though).我的节目来得太晚了,但是 - 至少可以使用来自另一个资源组(尽管不是地理区域)的应用服务计划创建应用服务。

You can pick up some details from here:您可以从这里获取一些详细信息:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当服务计划位于其他资源组中时如何部署Azure Functions应用 - How to deploy an Azure Functions App when the Service plan is in a different Resource Group 创建新的Azure资源组或应用程序服务计划/位置时出错 - Error creating a new Azure Resource Group or App service Plan/ Location 我可以安全地将应用服务计划移动到新的不同资源组而不影响计划中的应用吗? - Can I safely move an App Service Plan to new different Resource Group without affecting the Apps in the plan? 资源组中的APP服务计划问题 - Issue with APP Service Plan in a Resource Group 使用Powershell在具有服务计划的资源组中创建Azure网站(应用程序服务) - Create Azure website (app service) within a resource group with service plan with Powershell 为什么在资源组级别和应用程序服务计划级别都使用Azure订阅? - Why are Azure subscriptions at resource group level and also at app service plan level? Azure共享应用服务计划中的不同环境 - Different environments in Azure shared app service plan 在逻辑应用和 Azure 应用功能之间共享应用服务计划 - Share App Service Plan between Logic Apps and Azure App Functions Azure App Service Plan插槽是否共享CPU /内存? - Do Azure App Service Plan slots share CPU/memory? Azure Functions和webapp可以共享相同的APP服务计划吗 - Can Azure Functions and webapp share same APP SERVICE PLAN
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM