{
    "properties": {
        "displayName": "IP firewall rules on Azure Synapse workspaces should be removed",
        "description": "Removing all IP firewall rules improves security by ensuring your Azure Synapse workspace can only be accessed from a private endpoint. This configuration audits creation of firewall rules that allow public network access on the workspace.",
        "policyType": "BuiltIn",
        "mode": "All",
        "metadata": {
            "version": "1.0.0",
            "category": "Synapse"
        },
        "parameters": {
            "effect": {
                "type": "String",
                "metadata": {
                    "displayName": "Effect",
                    "description": "Enable or disable the execution of the policy"
                },
                "allowedValues": [
                    "Audit",
                    "Disabled"
                ],
                "defaultValue": "Audit"
            }
        },
        "policyRule": {
            "if": {
                "allOf": [
                    {
                        "field": "type",
                        "equals": "Microsoft.Synapse/workspaces/firewallrules"
                    },
                    {
                        "field": "name",
                        "exists": "true"
                    }
                ]
            },
            "then": {
                "effect": "[parameters('effect')]"
            }
        }
    },
    "id": "/providers/Microsoft.Authorization/policyDefinitions/56fd377d-098c-4f02-8406-81eb055902b8",
    "name": "56fd377d-098c-4f02-8406-81eb055902b8"
}