azure-resource-manager - 无法在当前资源组中创建请求的应用服务计划,因为它正在托管 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 模板没有变化。
我无权使用此订阅创建新的资源组,只有现有资源组的所有者。
解决方案
从历史上看,您不能在同一个资源组中混合使用 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
推荐阅读
- python - 在python中从json中提取数据
- javascript - 加载 Ajax 时找不到 Div
- xml - 如何计算 colspec/@colwidth 属性值的总和在条目 Element-XSLT 中匹配属性 namest 到 nameend
- linux - 如果线程共享相同的文件描述符表,每个线程如何读取文件的不同部分?
- rest - 评估软件的科学方法
- javascript - 滚动显示 - ScrollMagic
- javascript - React:如果用户的 cookie 过期,如何注销用户?
- javascript - 如何使用本地存储保存变量
- java - MediaPlayer mediaPlayer 做什么...?在 java 安卓中
- php - Laravel - 在 laravel 模型中使用或不使用可填充?