{
    "properties": {
        "displayName": "Audit existence of authorization rules on Event Hub entities",
        "mode": "Indexed",
        "description": "Audit existence of authorization rules on Event Hub entities to grant least-privileged access",
        "metadata": {
            "category": "Event Hub"
        },
        "policyRule": {
            "if": {
              "field": "type",
              "equals": "Microsoft.EventHub/namespaces/eventhubs"
            },
            "then": {
              "effect": "AuditIfNotExists",
              "details": {
                "type": "Microsoft.EventHub/namespaces/eventHubs/authorizationRules"
              }
            }
        }
    }
}
