Bylaw

Gallery › Network › Azure built-in policies

[Deprecated]: Subscription should configure the Azure Firewall Premium to provide additional layer of protection

Converted Policy AuditIfNotExists Disabled Mode All Version 1.1.0-deprecated Deprecated

This policy is deprecated because Microsoft 365 App Compliance Program no longer requires Azure Firewall premium as the only network security control solution. Learn more details about the latest M365 APP Compliance requirements about network security controls at aka.ms/acat-cert2-seg-ops-nsc. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.

ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.

Azure Policy JSONACAT_Firewall_FirewallPremiumShouldExist_Audit.json · 58 lines
{
  "properties": {
    "displayName": "[Deprecated]: Subscription should configure the Azure Firewall Premium to provide additional layer of protection",
    "policyType": "BuiltIn",
    "description": "This policy is deprecated because Microsoft 365 App Compliance Program no longer requires Azure Firewall premium as the only network security control solution. Learn more details about the latest M365 APP Compliance requirements about network security controls at aka.ms/acat-cert2-seg-ops-nsc. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.",
    "mode": "All",
    "metadata": {
      "version": "1.1.0-deprecated",
      "category": "Network",
      "deprecated": true
    },
    "version": "1.1.0",
    "parameters": {
      "effect": {
        "type": "String",
        "defaultValue": "Disabled",
        "allowedValues": [
          "AuditIfNotExists",
          "Disabled"
        ],
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        }
      }
    },
    "policyRule": {
      "if": {
        "field": "type",
        "equals": "Microsoft.Resources/subscriptions"
      },
      "then": {
        "effect": "[parameters('effect')]",
        "details": {
          "type": "Microsoft.Network/azureFirewalls",
          "existenceCondition": {
            "allOf": [
              {
                "field": "Microsoft.Network/azureFirewalls/sku.name",
                "exists": true
              },
              {
                "field": "Microsoft.Network/azureFirewalls/sku.tier",
                "equals": "Premium"
              }
            ]
          }
        }
      }
    },
    "versions": [
      "1.1.0",
      "1.0.0"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/f2c2d0a6-e183-4fc8-bd8f-363c65d3bbbf",
  "name": "f2c2d0a6-e183-4fc8-bd8f-363c65d3bbbf"
}
Bylawf2c2d0a6-e183-4fc8-bd8f-363c65d3bbbf.bylaw.ps1 · 29 lines
# Converted from ACAT_Firewall_FirewallPremiumShouldExist_Audit.json by ConvertTo-Bylaw.
Policy 'f2c2d0a6-e183-4fc8-bd8f-363c65d3bbbf' {

    Properties @{
        DisplayName   = '[Deprecated]: Subscription should configure the Azure Firewall Premium to provide additional layer of protection'
        Description   = 'This policy is deprecated because Microsoft 365 App Compliance Program no longer requires Azure Firewall premium as the only network security control solution. Learn more details about the latest M365 APP Compliance requirements about network security controls at aka.ms/acat-cert2-seg-ops-nsc. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.'
        Version       = '1.1.0-deprecated'
        Category      = 'Network'
        Deprecated    = $true
        PolicyVersion = '1.1.0'
        Mode          = 'All'
    }

    Parameter Effect @{
        AllowedValues = @('AuditIfNotExists', 'Disabled')
        Default       = 'Disabled'
        DisplayName   = 'Effect'
        Description   = 'Enable or disable the execution of the policy'
    }

    Resource 'Microsoft.Resources/subscriptions'

    AuditIfNotExists 'Microsoft.Network/azureFirewalls' -Effect (Param Effect) {
        Require 'sku.name exists and sku.tier is Premium' {
            Field sku.name | Must -Exist
            Field sku.tier | Must -Be 'Premium'
        }
    }
}

Source: built-in-policies/policyDefinitions/Network/ACAT_Firewall_FirewallPremiumShouldExist_Audit.json in Azure/azure-policy, under the MIT licence.