可以尝试根据身份提供者配置,重新生成证书并重新注册 AKS,然后更新客户端应用程序的证书和配置。
具体示例代码:
az aks create cluster --name myAKSCluster --resource-group myResourceGroup --generate-ssh-keys --aad-server-app-id  --aad-server-app-secret  --aad-client-app-id  --aad-tenant-id 
    
az aks update-credentials --resource-group myResourceGroup --name myAKSCluster --reset-service-principal --service-principal  --client-secret 
az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
  
kubectl config use-context 
kubectl get nodes
 
然后,您应该就可以连接到您的 AKS 集群并使用 Kubectl 进行管理和操作。