Gallery › Network › Azure built-in policies
Azure Firewall should be deployed to span multiple Availability Zones
Converted Policy Audit Deny Disabled Mode Indexed Version 1.0.0
For increased availability we recommend deploying your Azure Firewall to span multiple Availability Zones. This ensures that your Azure Firewall will remain available in the event of a zone failure.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONAzureFirewall_DeployWithMultipleAvailabilityZones_Audit.json · 50 lines
{
"properties": {
"displayName": "Azure Firewall should be deployed to span multiple Availability Zones",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "For increased availability we recommend deploying your Azure Firewall to span multiple Availability Zones. This ensures that your Azure Firewall will remain available in the event of a zone failure.",
"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/zones",
"exists": false
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/3e1f521a-d037-4709-bdd6-1f532f271a75",
"name": "3e1f521a-d037-4709-bdd6-1f532f271a75"
}Bylaw3e1f521a-d037-4709-bdd6-1f532f271a75.bylaw.ps1 · 28 lines
# Converted from AzureFirewall_DeployWithMultipleAvailabilityZones_Audit.json by ConvertTo-Bylaw.
Policy '3e1f521a-d037-4709-bdd6-1f532f271a75' {
Properties @{
DisplayName = 'Azure Firewall should be deployed to span multiple Availability Zones'
Description = 'For increased availability we recommend deploying your Azure Firewall to span multiple Availability Zones. This ensures that your Azure Firewall will remain available in the event of a zone failure.'
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 'zones exists' {
Field zones | Must -Exist
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Network/AzureFirewall_DeployWithMultipleAvailabilityZones_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw