Unable to Remove Azure Defender from AKS

Jeff Puccinelli 1 Reputation point
2022-07-15T16:42:24.083+00:00

I followed the MS documentation here...

https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-containers-enable?tabs=aks-deploy-portal%2Ck8s-deploy-asc%2Ck8s-verify-asc%2Ck8s-remove-arc%2Ck8s-remove-cli&pivots=defender-for-container-aks#remove-the-defender-profile

I ran the specified command below...
az login
az account set --subscription <subscription-id>
az aks update --disable-defender --resource-group <your-resource-group> --name <your-cluster-name>

I then deleted the defender deployments and replica sets but the deployments keep reappearing.

My question is how can I permanently remove Azure Defender from my AKS clusters?

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.
2,146 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SaiGunaranjan 1 Reputation point
    2022-07-16T21:13:23.077+00:00

    Hi @Jeff Puccinelli

    Check your defender for cloud configuration on the subscription, and disable auto provisioning of "Microsoft Defender for Container"
    221532-image.png

    Ref : https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-containers-enable

    If this response helped Please don't forget to Accept Answer and Up-vote -- Sai

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.