skip to Main Content

I am trying to fix this high severity error for Azure Kubernetes Cluster

I tried using Azure portal but It keeps spinning for hours and does not fix it.

I also tried with below Az Command –

az aks update --enable-defender --resource-group <your-resource-group> --name <your-cluster-name>

but it gives error –

unrecognized arguments: –enable-defender az

I am looking for guidance to fix this issue

2

Answers


  1. My guess is that your az aks command is too old. Update with sudo apt-get update or similar or install a new version from scratch. The client is updated frequently so it is not uncommon to run into features not supported with an old version.

    Login or Signup to reply.
  2. Have you registered the defender feature prior to running the update command?

    az feature register --namespace Microsoft.ContainerService --name AKS-AzureDefender
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search