Bylaw

Gallery › Network › Azure built-in policies

[Deprecated]: Firewall Policy Premium should enable all IDPS signature rules to monitor all inbound and outbound traffic flows

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_EnableAllIDPSSignatureRules_Audit.json · 62 lines
{
  "properties": {
    "displayName": "[Deprecated]: Firewall Policy Premium should enable all IDPS signature rules to monitor all inbound and outbound traffic flows",
    "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"
          },
          {
            "count": {
              "field": "Microsoft.Network/firewallPolicies/intrusionDetection.configuration.signatureOverrides[*]",
              "where": {
                "field": "Microsoft.Network/firewallPolicies/intrusionDetection.configuration.signatureOverrides[*].mode",
                "equals": "Off"
              }
            },
            "greaterOrEquals": 1
          }
        ]
      },
      "then": {
        "effect": "[parameters('effect')]"
      }
    },
    "versions": [
      "1.1.0",
      "1.0.0"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/610b6183-5f00-4d68-86d2-4ab4cb3a67a5",
  "name": "610b6183-5f00-4d68-86d2-4ab4cb3a67a5"
}
Bylaw610b6183-5f00-4d68-86d2-4ab4cb3a67a5.bylaw.ps1 · 35 lines
# Converted from ACAT_FirewallPolicy_EnableAllIDPSSignatureRules_Audit.json by ConvertTo-Bylaw.
Policy '610b6183-5f00-4d68-86d2-4ab4cb3a67a5' {

    Properties @{
        DisplayName   = '[Deprecated]: Firewall Policy Premium should enable all IDPS signature rules to monitor all inbound and outbound traffic flows'
        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.configuration.signatureOverrides and mode are as required' {
            Count 'intrusionDetection.configuration.signatureOverrides[*]' -Where {
                Field mode | Must -Be 'Off'
            } | Must -Be 0
        }
    }

    Effect (Param Effect)
}

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