last sync: 2021-Sep-22 19:36:51 UTC

Azure Policy definition

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

Name 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.2
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 FALSE
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-01-27 16:54:46 change Patch, old suffix: preview (1.0.1-preview > 1.0.2)
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
[Deprecated]: Azure Security Benchmark v2 bb522ac1-bc39-4957-b194-429bcd3bcb0b Regulatory Compliance Deprecated
[Preview]: NIST SP 800-53 Rev. 5 179d1daa-458f-4e47-8086-2a68d0d6c38f Regulatory Compliance Preview
Azure Security Benchmark 1f3afdf9-d0c9-4c3d-847f-89da613e70a8 Security Center GA
FedRAMP High d5264498-16f4-418a-b659-fa7ef418175f Regulatory Compliance GA
FedRAMP Moderate e95f5a9f-57ad-4d03-bb0b-b1d16db93693 Regulatory Compliance GA
NIST SP 800-53 Rev. 4 cf25b9c1-bd23-4eb6-bd2c-f4f3ac644a5f Regulatory Compliance GA
JSON Changes

JSON
{
  "displayName": "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.2",
    "category": "Kubernetes"
  },
  "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.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')]"
    }
  }
}