Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading new azpolicy for appgw public ips + ddos #390

Merged
merged 2 commits into from
Sep 12, 2024
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,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.
Loading