I have tried this command and it resolved the issue.
upgrading the cluster to the current version ( my cluster in on 1.24.0 so trying to upgrade to the same version)
az aks upgrade --name <cluster name> --resource-group rg --subscription "subscrition" --kubernetes-version 1.24.0 --yes