You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure App Service Bicep配置AlwaysOn属性失效问题排查

问题:Bicep配置Basic层Function App的AlwaysOn不生效

我尝试为托管在Basic定价层专用App Service中的Function App,通过Bicep用以下两种方式将AlwaysOn配置为true,但两种方式均不生效:

  • 在properties/siteConfig配置段中设置alwaysOn: true
  • 创建“config”类型的子资源

我的Bicep代码如下:

resource azureFunction 'Microsoft.Web/sites@2020-12-01' = {
  name: pFunctionAppName
  location: pLocation
  kind: 'functionapp'
  
  properties: {
    serverFarmId: pServerFarmId
    siteConfig: {
      //Removed rest of the code for brevity
      alwaysOn: true
    }
  }
}

更新:代码本身完全正常,是我运行了错误的文件,在此致歉。

内容的提问来源于stack exchange,提问作者Prawin

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.27 21:37:04