无法在当前资源组中创建请求的应用服务计划,因为它正在托管 Linux 个应用
The requested app service plan cannot be created in the current resource group because it is hosting Linux apps
我正在使用 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 模板没有变化。
我无权使用此订阅创建新的资源组,我只有这个现有资源组的所有者。
通过为资源组创建新的 Linux 应用服务计划,然后将其删除,可以解决该问题。之后 Windows 应用服务计划配置再次生效。
对我有用的解决方案:
似乎相同 OS 的 (Linux/Windows) 应用服务计划 (ASP) 不能在同一区域的同一资源组中使用。
所以我所做的是,
- 创建了一个新的资源组(可选,如果您已有)
- 已删除组中的所有 ASP(如果您使用的是已创建的资源组)
- 搜索“应用服务计划”并按 Enter
- 单击添加
- 指定资源组 > Select OS (Linux) > Select 区域(美国东部)> Select SKU > 审核 + 创建。
再次,
- 搜索“应用服务计划”并按 Enter
- 单击添加
- 指定资源组 > Select OS (Windows) > Select 区域(美国中部)> Select SKU > 查看 + 创建。
按照上述步骤,解决了我的问题。希望对其他人有帮助。
Historically, you can't mix Windows and Linux apps in the same resource group. However, all resource groups created on or after January 21, 2021 do support this scenario. For resource groups created before January 21, 2021, the ability to add mixed platform deployments will be rolled out across Azure regions (including National cloud regions) soon.
参见: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
就我而言,我删除了该资源组中所有现有的应用程序服务和解决方案以及占位符,然后就可以了
我正在使用 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 模板没有变化。
我无权使用此订阅创建新的资源组,我只有这个现有资源组的所有者。
通过为资源组创建新的 Linux 应用服务计划,然后将其删除,可以解决该问题。之后 Windows 应用服务计划配置再次生效。
对我有用的解决方案:
似乎相同 OS 的 (Linux/Windows) 应用服务计划 (ASP) 不能在同一区域的同一资源组中使用。
所以我所做的是,
- 创建了一个新的资源组(可选,如果您已有)
- 已删除组中的所有 ASP(如果您使用的是已创建的资源组)
- 搜索“应用服务计划”并按 Enter
- 单击添加
- 指定资源组 > Select OS (Linux) > Select 区域(美国东部)> Select SKU > 审核 + 创建。
再次,
- 搜索“应用服务计划”并按 Enter
- 单击添加
- 指定资源组 > Select OS (Windows) > Select 区域(美国中部)> Select SKU > 查看 + 创建。
按照上述步骤,解决了我的问题。希望对其他人有帮助。
Historically, you can't mix Windows and Linux apps in the same resource group. However, all resource groups created on or after January 21, 2021 do support this scenario. For resource groups created before January 21, 2021, the ability to add mixed platform deployments will be rolled out across Azure regions (including National cloud regions) soon.
参见: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
就我而言,我删除了该资源组中所有现有的应用程序服务和解决方案以及占位符,然后就可以了