last sync: 2020-Jul-02 13:28:37 UTC

Azure Policy

Azure Event Grid domains should use private links

Policy DisplayName Azure Event Grid domains should use private links
Policy Id 9830b652-8523-49cc-b1b3-e17dce1127ca
Policy Category Event Grid
Policy Description Audit Azure Event Grid domains that do not have at least one approved private endpoint connection. Clients in a virtual network can securely access resources that have private endpoint connections via private links. For more information, visit https://aka.ms/privateendpoints.
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Default: Audit
Allowed: (Audit,Disabled)
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2020-05-29 15:39:09 add: Policy 9830b652-8523-49cc-b1b3-e17dce1127ca
Used in Policy Initiative(s) none
Policy Rule
{
  "properties": {
    "displayName": "Azure Event Grid domains should use private links",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Audit Azure Event Grid domains that do not have at least one approved private endpoint connection. Clients in a virtual network can securely access resources that have private endpoint connections via private links. For more information, visit https://aka.ms/privateendpoints.",
    "metadata": {
      "version": "1.0.0",
      "category": "Event Grid"
    },
    "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.EventGrid/domains"
          },
          {
            "count": {
            "field": "Microsoft.EventGrid/domains/privateEndpointConnections[*]",
              "where": {
              "field": "Microsoft.EventGrid/domains/privateEndpointConnections[*].privateLinkServiceConnectionState.status",
                "equals": "Approved"
              }
            },
            "less": 1
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/9830b652-8523-49cc-b1b3-e17dce1127ca",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "9830b652-8523-49cc-b1b3-e17dce1127ca"
}