last sync: 2020-Sep-21 13:43:50 UTC

Azure Policy

Authorization rules on the Event Hub instance should be defined

Policy DisplayName Authorization rules on the Event Hub instance should be defined
Policy Id f4826e5f-6a27-407c-ae3e-9582eb39891d
Policy Category Event Hub
Policy Description Audit existence of authorization rules on Event Hub entities to grant least-privileged access
Policy Mode All
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Default: AuditIfNotExists
Allowed: (AuditIfNotExists,Disabled)
Roles used none
Policy Changes no changes
Used in Policy Initiative(s) none
Policy Rule
{
  "properties": {
    "displayName": "Authorization rules on the Event Hub instance should be defined",
    "policyType": "BuiltIn",
    "mode": "All",
    "description": "Audit existence of authorization rules on Event Hub entities to grant least-privileged access",
    "metadata": {
      "version": "1.0.0",
      "category": "Event Hub"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "AuditIfNotExists",
          "Disabled"
        ],
        "defaultValue": "AuditIfNotExists"
      }
    },
    "policyRule": {
      "if": {
        "field": "type",
        "equals": "Microsoft.EventHub/namespaces/eventhubs"
      },
      "then": {
      "effect": "[parameters('effect')]",
        "details": {
          "type": "Microsoft.EventHub/namespaces/eventHubs/authorizationRules"
        }
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/f4826e5f-6a27-407c-ae3e-9582eb39891d",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "f4826e5f-6a27-407c-ae3e-9582eb39891d"
}