last sync: 2020-Dec-03 15:30:53 UTC

Azure Policy definition

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

Name [Preview]: Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters
Azure Portal
Id 0a15ec92-a229-4763-bb14-0ea34a568f8d
Version 1.0.1-preview
details on versioning
Category Kubernetes
Microsoft docs
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.
Mode Indexed
Type BuiltIn
Preview True
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2020-09-16 13:09:49 change Previous DisplayName: [Preview]: Kubernetes Management Policy add-on should be installed and enabled on your clusters
2020-06-23 16:03:25 add 0a15ec92-a229-4763-bb14-0ea34a568f8d
Used in Initiatives
Initiative DisplayName Initiative Id Initiative Category State
Enable Monitoring in Azure Security Center 1f3afdf9-d0c9-4c3d-847f-89da613e70a8 Security Center GA
Json
{
  "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"
}