当我查看文档时,提到了Microsoft.Web/sites/config/web
别名,但不清楚何时评估它们。
我已经创建了下面的策略并且它工作正常。有没有理由我还应该配置它来检查Microsoft.Web/sites/config/web.localMySqlEnabled
别名?
类似别名的示例
- Microsoft.Web/sites/config/localMySqlEnabled
- Microsoft.Web/sites/config/web.localMySqlEnabled
政策规则
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Web/sites/config"
},
{
"field": "name",
"equals": "web"
},
{
"field": "Microsoft.Web/sites/config/localMySqlEnabled",
"exists": "true"
},
{
"field": "Microsoft.Web/sites/config/localMySqlEnabled",
"notEquals": "false"
}
]
},
"then": {
"effect": "Deny"
}
}