首页 > 解决方案 > 无法在当前资源组中创建请求的应用服务计划,因为它正在托管 Linux 应用

问题描述

我正在使用 ARM 模板向现有资源组预配应用服务、应用服务计划和存储帐户。每晚都这样做。一切都工作了几个月,但突然开始看到这样的错误:

{
 "Code": "BadRequest",
 "Message": "The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one.",
 "Target": null,
 "Details": [
   {
     "Message": "The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one."
   },
   {
     "Code": "BadRequest"
   },
   {
     "ErrorEntity": {
       "ExtendedCode": "59314",
       "MessageTemplate": "The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one.",
       "Parameters": [],
       "Code": "BadRequest",
       "Message": "The requested app service plan cannot be created in the current resource group because it is hosting Linux apps. Please choose a different resource group or create a new one."
     }
   }
 ],
 "Innererror": null
' Error code: 1201
}

ARM 模板没有变化。

我无权使用此订阅创建新的资源组,只有现有资源组的所有者。

标签: azure-resource-managerarm-template

解决方案


从历史上看,您不能在同一个资源组中混合使用 Windows 和 Linux 应用程序。但是,在 2021 年 1 月 21 日或之后创建的所有资源组都支持此方案。对于 2021 年 1 月 21 日之前创建的资源组,添加混合平台部署的功能将很快在 Azure 区域(包括国家云区域)推出。

请参阅:https ://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-intro#limitations

另请参阅在同一资源组中支持 Linux 和 Windows 应用服务计划的功能请求: https ://feedback.azure.com/forums/169385-web-apps/suggestions/37287583-allow-a-linux-and-windows -app-service-plan-to-exis


推荐阅读