Unable to connect to AKS cluster via kubectl on Windows
Published 21 August 2024
Whilst connecting to an AKS cluster, if the kubectl commands all fail it may be because the credentials are not stored in the connect place.
Running the az aks get-credentials command from WSL on windows, copies a file onto your machine. On WLS, it might be copied on the windows filesystem instead of the linux filesystem.
Copy c:\users\[username]\.kube\config on Windows to ~/.kube/config in WSL.