Gallery › Network › Azure built-in policies
Azure Firewall Standard - Classic Rules 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 JSONAzureFirewallClassicRulesPolicy_StandardAzureFirewall_EnableThreatIntelligence_Audit.json · 54 lines
{
"properties": {
"displayName": "Azure Firewall Standard - Classic Rules 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/azureFirewalls"
},
{
"field": "Microsoft.Network/azureFirewalls/sku.tier",
"equals": "Standard"
},
{
"field": "Microsoft.Network/azureFirewalls/threatIntelMode",
"equals": "off"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/7c591a93-c34c-464c-94ac-8f9f9a46e3d6",
"name": "7c591a93-c34c-464c-94ac-8f9f9a46e3d6"
}Bylaw7c591a93-c34c-464c-94ac-8f9f9a46e3d6.bylaw.ps1 · 32 lines
# Converted from AzureFirewallClassicRulesPolicy_StandardAzureFirewall_EnableThreatIntelligence_Audit.json by ConvertTo-Bylaw.
Policy '7c591a93-c34c-464c-94ac-8f9f9a46e3d6' {
Properties @{
DisplayName = 'Azure Firewall Standard - Classic Rules 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/azureFirewalls' {
When {
Field sku.tier | Must -Be 'Standard'
}
Require 'threatIntelMode is not off' {
Field threatIntelMode | Must -Not -Be 'off' -IfPresent
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Network/AzureFirewallClassicRulesPolicy_StandardAzureFirewall_EnableThreatIntelligence_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw