last sync: 2020-Sep-22 14:52:15 UTC

Azure Policy

[Preview]: Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters

Policy DisplayName [Preview]: Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters
Policy Id 0a15ec92-a229-4763-bb14-0ea34a568f8d
Policy Category Kubernetes
Policy Description Azure Policy Add-on for Kubernetes service (AKS) extends Gatekeeper v3, an admission controller webhook for Open Policy Agent (OPA), to apply at-scale enforcements and safeguards on your clusters in a centralized, consistent manner.
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
2020-09-16 13:09:49 change: DisplayName previous DisplayName: [Preview]: Kubernetes Management Policy add-on should be installed and enabled on your clusters
2020-06-23 16:03:25 add: Policy 0a15ec92-a229-4763-bb14-0ea34a568f8d
Used in Policy Initiative(s)
Initiative DisplayName Initiative Id
Enable Monitoring in Azure Security Center 1f3afdf9-d0c9-4c3d-847f-89da613e70a8
Policy Rule
{
  "properties": {
  "displayName": "[Preview]: Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Azure Policy Add-on for Kubernetes service (AKS) extends Gatekeeper v3, an admission controller webhook for Open Policy Agent (OPA), to apply at-scale enforcements and safeguards on your clusters in a centralized, consistent manner.",
    "metadata": {
      "version": "1.0.1-preview",
      "category": "Kubernetes",
      "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.ContainerService/managedClusters"
          },
          {
            "anyOf": [
              {
                "field": "Microsoft.ContainerService/managedClusters/addonProfiles.azurePolicy.enabled",
                "exists": "false"
              },
              {
                "field": "Microsoft.ContainerService/managedClusters/addonProfiles.azurePolicy.enabled",
                "equals": "false"
              }
            ]
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/0a15ec92-a229-4763-bb14-0ea34a568f8d",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "0a15ec92-a229-4763-bb14-0ea34a568f8d"
}