Gallery › Network › Azure built-in policies
Azure Firewall Standard should be upgraded to Premium for next generation protection
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
If you are looking for next generation protection like IDPS and TLS inspection, you should consider upgrading your Azure Firewall to Premium sku.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONAzureFirewall_UpgradeStandardToPremiumForNextGenProtection_Audit.json · 50 lines
{
"properties": {
"displayName": "Azure Firewall Standard should be upgraded to Premium for next generation protection",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "If you are looking for next generation protection like IDPS and TLS inspection, you should consider upgrading your Azure Firewall to Premium sku.",
"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"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/8c19196d-7fd7-45b2-a9b4-7288f47c769a",
"name": "8c19196d-7fd7-45b2-a9b4-7288f47c769a"
}Bylaw8c19196d-7fd7-45b2-a9b4-7288f47c769a.bylaw.ps1 · 28 lines
# Converted from AzureFirewall_UpgradeStandardToPremiumForNextGenProtection_Audit.json by ConvertTo-Bylaw.
Policy '8c19196d-7fd7-45b2-a9b4-7288f47c769a' {
Properties @{
DisplayName = 'Azure Firewall Standard should be upgraded to Premium for next generation protection'
Description = 'If you are looking for next generation protection like IDPS and TLS inspection, you should consider upgrading your Azure Firewall to Premium sku.'
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' {
Require 'sku.tier is not Standard' {
Field sku.tier | Must -Not -Be 'Standard' -IfPresent
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Network/AzureFirewall_UpgradeStandardToPremiumForNextGenProtection_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw