Gallery › Network › Azure built-in policies
Azure Firewall Policy should enable Threat Intelligence
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
Threat intelligence-based filtering can be enabled for your firewall to alert and deny traffic from/to known malicious IP addresses and domains. The IP addresses and domains are sourced from the Microsoft Threat Intelligence feed.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONAzureFirewallPolicy_EnableThreatIntelligence_Audit.json · 50 lines
{
"properties": {
"displayName": "Azure Firewall Policy should enable Threat Intelligence",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Threat intelligence-based filtering can be enabled for your firewall to alert and deny traffic from/to known malicious IP addresses and domains. The IP addresses and domains are sourced from the Microsoft Threat Intelligence feed.",
"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",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Network/firewallPolicies"
},
{
"field": "Microsoft.Network/firewallPolicies/threatIntelMode",
"equals": "off"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/da79a7e2-8aa1-45ed-af81-ba050c153564",
"name": "da79a7e2-8aa1-45ed-af81-ba050c153564"
}Bylawda79a7e2-8aa1-45ed-af81-ba050c153564.bylaw.ps1 · 28 lines
# Converted from AzureFirewallPolicy_EnableThreatIntelligence_Audit.json by ConvertTo-Bylaw.
Policy 'da79a7e2-8aa1-45ed-af81-ba050c153564' {
Properties @{
DisplayName = 'Azure Firewall Policy should enable Threat Intelligence'
Description = 'Threat intelligence-based filtering can be enabled for your firewall to alert and deny traffic from/to known malicious IP addresses and domains. The IP addresses and domains are sourced from the Microsoft Threat Intelligence feed.'
Version = '1.0.0'
Category = 'Network'
PolicyVersion = '1.0.0'
Mode = 'Indexed'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Deny', 'Disabled')
Default = 'Audit'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Network/firewallPolicies' {
Require 'threatIntelMode is not off' {
Field threatIntelMode | Must -Not -Be 'off' -IfPresent
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Network/AzureFirewallPolicy_EnableThreatIntelligence_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw