last sync: 2021-Sep-24 16:09:49 UTC

Azure Policy definition

Event Hub should use a virtual network service endpoint

Name Event Hub should use a virtual network service endpoint
Azure Portal
Id d63edb4a-c612-454d-b47d-191a724fcbf0
Version 1.0.0
details on versioning
Category Network
Microsoft docs
Description This policy audits any Event Hub not configured to use a virtual network service endpoint.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: AuditIfNotExists
Allowed: (AuditIfNotExists, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2019-10-11 00:02:54 add d63edb4a-c612-454d-b47d-191a724fcbf0
Used in Initiatives
Initiative DisplayName Initiative Id Initiative Category State
[Deprecated]: Azure Security Benchmark v1 42a694ed-f65e-42b2-aa9e-8052e9740a92 Regulatory Compliance Deprecated
HITRUST/HIPAA a169a624-5599-4385-a696-c8d643089fab Regulatory Compliance GA
JSON
{
  "displayName": "Event Hub should use a virtual network service endpoint",
  "policyType": "BuiltIn",
  "mode": "Indexed",
  "description": "This policy audits any Event Hub not configured to use a virtual network service endpoint.",
  "metadata": {
    "version": "1.0.0",
    "category": "Network"
  },
  "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"
    },
    "then": {
      "effect": "[parameters('effect')]",
      "details": {
        "type": "Microsoft.EventHub/namespaces/virtualNetworkRules",
        "existenceCondition": {
          "field": "Microsoft.EventHub/namespaces/virtualNetworkRules/virtualNetworkSubnetId",
          "exists": "true"
        }
      }
    }
  }
}