Bylaw

Gallery › Network › Azure built-in policies

[Deprecated]: Firewall Policy Premium should enable the Intrusion Detection and Prevention System (IDPS)

Converted Policy Audit Deny Disabled Mode Indexed 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_FirewallPolicy_EnableIDPS_Audit.json · 56 lines
{
  "properties": {
    "displayName": "[Deprecated]: Firewall Policy Premium should enable the Intrusion Detection and Prevention System (IDPS)",
    "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": "Indexed",
    "metadata": {
      "version": "1.1.0-deprecated",
      "category": "Network",
      "deprecated": true
    },
    "version": "1.1.0",
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Disabled"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Network/firewallPolicies"
          },
          {
            "field": "Microsoft.Network/firewallPolicies/sku.tier",
            "equals": "Premium"
          },
          {
            "field": "Microsoft.Network/firewallPolicies/intrusionDetection.mode",
            "equals": "off"
          }
        ]
      },
      "then": {
        "effect": "[parameters('effect')]"
      }
    },
    "versions": [
      "1.1.0",
      "1.0.0"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/6484db87-a62d-4327-9f07-80a2cbdf333a",
  "name": "6484db87-a62d-4327-9f07-80a2cbdf333a"
}
Bylaw6484db87-a62d-4327-9f07-80a2cbdf333a.bylaw.ps1 · 33 lines
# Converted from ACAT_FirewallPolicy_EnableIDPS_Audit.json by ConvertTo-Bylaw.
Policy '6484db87-a62d-4327-9f07-80a2cbdf333a' {

    Properties @{
        DisplayName   = '[Deprecated]: Firewall Policy Premium should enable the Intrusion Detection and Prevention System (IDPS)'
        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          = 'Indexed'
    }

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

    Resource 'Microsoft.Network/firewallPolicies' {

        When {
            Field sku.tier | Must -Be 'Premium'
        }

        Require 'intrusionDetection.mode is not off' {
            Field intrusionDetection.mode | Must -Not -Be 'off' -IfPresent
        }
    }

    Effect (Param Effect)
}

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