Skip to content

Commit

Permalink
Merge pull request #390 from gumoden/master
Browse files Browse the repository at this point in the history
Uploading new azpolicy for appgw public ips + ddos
  • Loading branch information
shabaz-github authored Sep 12, 2024
2 parents b032b60 + 145cf37 commit 73b4773
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"properties": {
"displayName": "Public IPs Associated with Azure Application Gateway Should Have DDoS Protection Enabled",
"policyType": "Custom",
"mode": "All",
"description": "Public IPs Associated with Azure Application Gateway Should Have DDoS Protection Enabled.\n\nNote: The Policy checks if DDoS Protection (Virtual Network Inherited or IP Protection is enabled on all Public IP addresses. For Azure Firewall Public IP addresses that do not have DDoS Protection, a non compliance state is returned. ",
"metadata": {
"version": "1.0.0",
"category": "Network"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Network/publicIPAddresses"
},
{
"field": "Microsoft.Network/publicIPAddresses/ipConfiguration.id",
"contains": "/providers/Microsoft.Network/applicationGateways/"
},
{
"allOf": [
{
"field": "Microsoft.Network/publicIPAddresses/ddosSettings.protectionMode",
"notEquals": "Enabled"
},
{
"field": "Microsoft.Network/publicIPAddresses/ddosSettings.protectionMode",
"notEquals": "VirtualNetworkInherited"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Public IPs Associated with Azure Application Gateway Should Have DDoS Protection Enabled

This policy makes sure that Azure Application Gateway Public IPs are protected with Azure DDoS Protection.

0 comments on commit 73b4773

Please sign in to comment.