【发布时间】: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