output/20260723_081532/govviz/ALZ_20260723_081601/Enterprise-Scale/src/resources/Microsoft.Authorization/policyDefinitions/Audit-AKS-kubenet.json
|
{ "name": "Audit-AKS-kubenet", "type": "Microsoft.Authorization/policyDefinitions", "apiVersion": "2021-06-01", "scope": null, "properties": { "displayName": "Detect AKS clusters using kubenet network plugin", "description": "Detects Azure Kubernetes Service (AKS) clusters that are configured to use the 'kubenet' network plugin that will be deprecated 31 March 2028. For more information review https://learn.microsoft.com/en-us/azure/aks/configure-kubenet", "policyType": "Custom", "mode": "Indexed", "metadata": { "category": "Kubernetes", "version": "1.0.0", "source": "https://github.com/Azure/Enterprise-Scale/", "alzCloudEnvironments": [ "AzureCloud" ] }, "parameters": { "effect": { "type": "String", "metadata": { "displayName": "Effect", "description": "Enable or disable the execution of the policy." }, "allowedValues": [ "Audit", "Deny", "Disabled" ], "defaultValue": "Audit" } }, "policyRule": { "if": { "allOf": [ { "field": "type", "equals": "Microsoft.ContainerService/managedClusters" }, { "field": "Microsoft.ContainerService/managedClusters/networkProfile.networkPlugin", "equals": "kubenet" } ] }, "then": { "effect": "[[parameters('effect')]" } } } } |