Azure policy is getting enabled automatically, how to remove that setting?

Uday Kiran Reddy (ureddy) 86 Reputation points

We have disabled the azure policy while creating the aks cluster.
But somehow, it is getting enabled after sometime.

How to check where this is being triggered and disable that setting.


Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,977 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
829 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Igor Beliakov 6 Reputation points

    Most likely, Azure policy is enabled in Auto provisioning section of Microsoft Defender for Cloud.

    Microsoft Defender for Cloud -> Environment Settings -> (pick relevant subscription) -> Auto provisioning -> Microsoft Defender for Containers components (preview) -> Azure Policy for Kubernetes add-on.


    1 person found this answer helpful.
    0 comments No comments