azure - Azure ARM 模板 - 应用程序网关 Web 应用程序防火墙配置 SelectorMatchOperator 语法
问题描述
我正在使用 ARM 模板在 Azure 中创建应用程序网关。创建 Web 应用程序防火墙配置部分时,我将在防火墙中添加排除项。我要添加的排除项之一具有“等于任何”运算符。我知道 , ,的语法Equals
,但我不知道需要为“Equals Any”输入什么。contains
StartsWith
EndsWith
我尝试了以下示例,但由于SelectorMatchOperator
不受支持,ARM 模板无法对其进行验证。如果有人知道 ARM 模板中“Equals any”的语法,我将不胜感激。谢谢。
{
"matchVariable": "RequestCookieNames",
"selectorMatchOperator": "EqualsAny",
"selector": "*"
}
{
"matchVariable": "RequestCookieNames",
"selectorMatchOperator": "Equals_Any",
"selector": "*"
}
{
"matchVariable": "RequestCookieNames",
"selectorMatchOperator": "Equals Any",
"selector": "*"
}
{
"matchVariable": "RequestCookieNames",
"selectorMatchOperator": "*",
"selector": "*"
}
{
"matchVariable": "RequestCookieNames",
"selectorMatchOperator": "Any",
"selector": "*"
}
解决方案
对于其他调查此问题的人。需要像下面这样设置排除项才能具有“等于任何”排除项。
{
"matchVariable": "RequestCookieNames",
"selectorMatchOperator": "",
"selector": ""
}
推荐阅读
- android - 正在进行通话。你只能调整通话音量我的应用通知接收mi设备,如mi 9t,redmi 4如何禁用它
- c - 从C中的文本文件中读取完整单词的行
- c# - DevExpress BlazorServer DataGrid LayoutChanged 事件在刷新后不会触发
- android-studio - 无法确定 Android SDK
- flutter - 如何在 Flutter 中显示指数字符串?
- docker - Docker Not pulling images from the Docker Hub on Mac OS
- python - 在使用 Sphinx 构建文档结束时记录日志
- multilabel-classification - 如何在 mlr 中使用调整参数进行多标签分类?
- sql-server - Power Apps Dataflow 从 Azure SQL 到 Dataverse 的持续时间真的很慢而且错误消息很糟糕吗?
- c# - 为什么我更新数据库后我的数据网格没有更新?