Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"displayName": "Bot Protection Enabled WAF AGC",
"policyType": "Custom",
"mode": "All",
"description": "This policy ensures that the Microsoft Bot Manager rule set is enabled in all Web Application Firewall (WAF) policies attached to Application Gateway for Containers (AGC)",
"metadata": {
"category": "Network",
"version": "1.0.0"
},
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"defaultValue": "AuditIfNotExists"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies"
},
{
"count": {
"field": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/applicationGatewayForContainers[*]"
},
"greater": 0
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies",
"name": "[field('name')]",
"existenceCondition": {
"count": {
"field": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/managedRules.managedRuleSets[*]",
"where": {
"field": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/managedRules.managedRuleSets[*].ruleSetType",
"equals": "Microsoft_BotManagerRuleSet"
}
},
"greater": 0
}
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Bot Protection should be enabled for Application Gateway for Containers (AGC) WAF
This policy mandates that the Microsoft Bot Manager rule set is enabled in all Web Application Firewall (WAF) policies attached to Application Gateway for Containers (AGC).
Loading