WSL2でkubectl実行するとlocalhost:8080 was refusedとか出る件

WSL2で az aks get-credentials --name MyManagedCluster --overwrite-existing --resource-group MyResourceGroup した後に kubectl get po したら以下のようなエラーが出た。 The connection to the server localhost:8080 was refused - did you specify the right host or port? 最近Service Principal作るときにlocal…