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,53 @@
{
"properties": {
"displayName": "AzureApplicationGateway-Should-be-Deployed-with-HTTPDDoSRuleset",
"policyType": "Custom",
"mode": "All",
"description": "This policy ensures that the Application Gateway deployments are HTTP DDoS Ruleset enabled to protect against Application Layer DDoS attacks.",
"metadata": {
"category": ""
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies"
},
{
"count": {
"field": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/managedRules.managedRuleSets[*]",
"where": {
"field": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/managedRules.managedRuleSets[*].ruleSetType",
"equals": "Microsoft_HTTPDDoSRuleSet"
}
},
"less": 1
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Application Gateway WAF should have HTTP DDoS Ruleset enabled

This policy mandates having HTTP DDoS Ruleset for Application Gateway WAF and has three options i.e., Audit, Deny & Disabled actions.