Sometimes it is required to update the credentials of the Kubernetes Cluster. You can use the below command to update the credentials.
$ az aks update-credentials -g MyResourceGroup -n MyCluster --reset-service-principal --service-principal NewPrincipalID --client-secret NewPrincipalSecret
Hope this helps!
To know more about Azure, It's recommended to join Azure Training in Chennai today.