Bylaw

Gallery › Network › Azure built-in policies

[Deprecated]: Bypass list of Intrusion Detection and Prevention System (IDPS) should be empty in Firewall Policy Premium

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_EmptyIDPSBypassList_Audit.json · 62 lines
{
  "properties": {
    "displayName": "[Deprecated]: Bypass list of Intrusion Detection and Prevention System (IDPS) should be empty in Firewall Policy Premium",
    "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.configuration.bypassTrafficSettings",
            "exists": true
          },
          {
            "count": {
              "field": "Microsoft.Network/firewallPolicies/intrusionDetection.configuration.bypassTrafficSettings[*]"
            },
            "notEquals": 0
          }
        ]
      },
      "then": {
        "effect": "[parameters('effect')]"
      }
    },
    "versions": [
      "1.1.0",
      "1.0.0"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/f516dc7a-4543-4d40-aad6-98f76a706b50",
  "name": "f516dc7a-4543-4d40-aad6-98f76a706b50"
}
Bylawf516dc7a-4543-4d40-aad6-98f76a706b50.bylaw.ps1 · 34 lines
# Converted from ACAT_FirewallPolicy_EmptyIDPSBypassList_Audit.json by ConvertTo-Bylaw.
Policy 'f516dc7a-4543-4d40-aad6-98f76a706b50' {

    Properties @{
        DisplayName   = '[Deprecated]: Bypass list of Intrusion Detection and Prevention System (IDPS) should be empty in Firewall Policy Premium'
        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'
            Field intrusionDetection.configuration.bypassTrafficSettings | Must -Exist
        }

        Require 'intrusionDetection.configuration.bypassTrafficSettings is as required' {
            Count 'intrusionDetection.configuration.bypassTrafficSettings[*]' | Must -Be 0
        }
    }

    Effect (Param Effect)
}

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