last sync: 2020-Jul-03 15:47:34 UTC

Azure Policy

[Preview]: Container Registry should use a virtual network service endpoint

Policy DisplayName [Preview]: Container Registry should use a virtual network service endpoint
Policy Id c4857be7-912a-4c75-87e6-e30292bcdf78
Policy Category Network
Policy Description This policy audits any Container Registry not configured to use a virtual network service endpoint.
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview True
Policy Deprecated FALSE
Policy Effect Default: Audit
Allowed: (Audit,Disabled)
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2019-10-11 00:02:54 add: Policy c4857be7-912a-4c75-87e6-e30292bcdf78
Used in Policy Initiative(s)
Initiative DisplayName Initiative Id
[Preview]: Azure Security Benchmark 42a694ed-f65e-42b2-aa9e-8052e9740a92
HITRUST/HIPAA a169a624-5599-4385-a696-c8d643089fab
Policy Rule
{
  "properties": {
  "displayName": "[Preview]: Container Registry should use a virtual network service endpoint",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "This policy audits any Container Registry not configured to use a virtual network service endpoint.",
    "metadata": {
      "version": "1.0.0-preview",
      "category": "Network",
      "preview": true
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
        "displayName": "[Preview]: Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.ContainerRegistry/registries"
          },
          {
            "anyOf": [
              {
                "field": "Microsoft.ContainerRegistry/registries/networkRuleSet.defaultAction",
                "notEquals": "Deny"
              },
              {
              "field": "Microsoft.ContainerRegistry/registries/networkRuleSet.virtualNetworkRules[*].action",
                "exists": "false"
              }
            ]
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/c4857be7-912a-4c75-87e6-e30292bcdf78",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "c4857be7-912a-4c75-87e6-e30292bcdf78"
}