【问题标题】:Setting the `customDomainVerificationId` property on an AppService in a Bicep deployment has no effect在二头肌部署中的 AppService 上设置“customDomainVerificationId”属性无效
【发布时间】:2021-09-29 19:27:27
【问题描述】:

我正在通过 Bicep 创建应用服务,并尝试设置“自定义域验证 ID”属性,以便设置正确的 TXT 记录以进行验证(在 Bicep 部署运行之前)。

resource app_service 'Microsoft.Web/sites@2021-01-15' = {
  name: name
  location: location
  properties: {
    serverFarmId: plan_id
    siteConfig: {
      netFrameworkVersion: 'v4.6'
    }
    customDomainVerificationId: custom_domain_verification_id
  }
}

但是,我设置的值不受尊重,将是应用服务上“自定义域”下的其他内容。

这个属性是只读的吗?

更新

看起来这实际上可能是一个只读属性。 It's the same across the entire Subscription,所以不能在单个 AppService 上设置它是有道理的。报告了一个问题here

【问题讨论】:

    标签: azure arm-template azure-appservice azure-bicep


    【解决方案1】:

    是的,这个属性应该是只读的。应用服务创建时填充。

    如果您不介意,请在https://aka.ms/bicep-type-issues 报告此不准确之处

    【讨论】:

    • 谢谢!我一直在寻找在哪里报告问题 :D 会这样做
    猜你喜欢
    • 2021-10-26
    • 1970-01-01
    • 1970-01-01
    • 2022-01-01
    • 2022-06-13
    • 1970-01-01
    • 1970-01-01
    • 2023-02-10
    • 2022-07-18
    相关资源
    最近更新 更多