使用 Bicep 设置 Web 应用的 IP 安全限制的标头



如何使用Bicep为Azure Web App的IP安全限制定义headers

文档对此只字未提,只说headers是一个对象。

ipSecurityRestrictions: [
{
priority: 1000
name: 'AFD'
tag: 'ServiceTag'
action: 'Allow'
ipAddress: 'AzureFrontDoor.Backend'    
headers: {
x_azure_fdid : [
'3dc8865d-90c7-4b87-8edf-99726c56543a'
]
}    
}
]

错误为:The 'x_azure_fdid' header is not supported!

我试过使用x_azure_fdidxazurefdid甚至'x_azure_fdid',大写等等……都没有用。

查看Front Door文档,标题名称为X-Azure-FDID

headers: {
'x-azure-fdid': [
'3dc8865d-90c7-4b87-8edf-99726c56543a'
]
}

最新更新