Can not find kubectl executable in PATH
12,407
You need to install kubectl in your azure cli. Run this command:
az aks install-cli
Then add "C:\Users{user}.azure-kubectl" to your PATH in control panel -> system -> advanced -> environment variables
Related videos on Youtube
Author by
Kannan GK
Updated on September 18, 2022Comments
-
Kannan GK over 1 year
Azure Kubernetes Service created and now to open Kubernetes dashboard, following the steps and getting error:
az : ERROR: Can not find kubectl executable in PATH).
PS C:\Program Files (x86)> az aks install-cli az : WARNING: Downloading client to C:\Program Files (x86)\kubectl.exe from https://storage.googleapis.com/kubernetes-release/release/v1.10.4/bin/windows/amd64/kubectl.exe At line:1 char:1 + az aks install-cli + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (WARNING: Downlo...d64/kubectl.exe:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError WARNING: Please ensure that C:\Program Files (x86) is in your search PATH, so the `kubectl.exe` command can be found. PS C:\Program Files (x86)> az aks get-credentials --resource-group AKS-RG --name akscls Merged "akscls" as current context in C:\Users\GK\.kube\config PS C:\Program Files (x86)> az aks browse --resource-group AKS-RG --name akscls az : ERROR: Can not find kubectl executable in PATH At line:1 char:1 + az aks browse --resource-group AKS-RG --name akscls + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (ERROR: Can not ...cutable in PATH:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError
-
Charles Xu almost 6 yearsIf the answer is helpful?