-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from gumoden/master
Uploading new azpolicy for appgw public ips + ddos
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
...ic IPs Associated with Azure Application Gateway Should Have DDoS Protection Enabled.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ed with Azure Application Gateway Should Have DDoS Protection Enabled/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |