Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SaleemBseeu authored Feb 6, 2025
1 parent 4aa873b commit 7d583d2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"mode": "All",
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Network/firewallPolicies"
},
{
"field": "Microsoft.Network/firewallPolicies/explicitProxy.enableExplicitProxy",
"exists": "false"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Disabled"
],
"defaultValue": "Audit"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Azure Policy - Enforce Explicit Proxy Configuration for Firewall Policies
This Azure Policy checks all deployed Firewall Policies (Microsoft.Network/firewallPolicies) to ensure the explicitProxy.enableExplicitProxy field is present. If it is missing, the policy flags or audits the resource based on the chosen effect.

How the Policy Works
Scope: Applies to all resources in scope with type Microsoft.Network/firewallPolicies.
Condition: Checks if explicitProxy.enableExplicitProxy does not exist ("exists": "false").
Action: Depending on the policy parameter effect, Azure Policy will either audit the non-compliant resource or disable the check.
Usage Instructions
Create/Assign the Policy: In the Azure Portal or via Azure CLI, upload this policy definition and assign it to a scope (management group, subscription, or resource group).
Choose the Effect: While assigning or editing the policy, select the desired effect (Audit or Disabled).
Review Compliance: In the Azure Policy blade, review which Firewall Policies do not meet the requirement if you have set the effect to Audit.

0 comments on commit 7d583d2

Please sign in to comment.