gpt4 book ai didi

Azure 应用服务计划属于 Linux 类型,但显示操作系统为 Windows

转载 作者:行者123 更新时间:2023-12-02 06:14:15 25 4
gpt4 key购买 nike

我正在通过 ARM 模板为 Azure 上的一个角度应用程序准备基础架构,我想在基于 Linux 的操作系统上托管应用程序,因此配置了“应用程序服务计划” - 种类:“Linux”,当我执行 ps 脚本时,应用程序服务计划已创建,但显示操作系统仍为 Windows。并将计划显示为 Linux 应用程序如果这是明显的行为,或者我仍然缺少任何正确配置 Linux 作为托管我的基于角度的应用程序的基本操作系统,请您告诉我。

PS:LinuxFxVersion 配置为 NODE|14lts

Below screenshot for newly created app plan

最佳答案

有一个更好的方法可以解决这个问题。在 properties 部分,有一个 reserved 选项:将其设置为 true。附上引用二头肌模板;在 ARM 模板中也可以完成同样的操作。

resource hostingPlan 'Microsoft.Web/serverfarms@2018-02-01' = {
name: hostingPlanName
kind: 'linux'
location: location
sku: {
name: 'S1'
tier: 'Standard'
}
properties: {
reserved: true
}
}

关于Azure 应用服务计划属于 Linux 类型,但显示操作系统为 Windows,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66170432/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com