Sometimes you feel lazy to close your powershell window/terminal after having installed a package.
Like recently I installed the kubectl package for connecting and managing AKS deployments and monitoring. And it required one to install/execute :
After installing the kubectl package , however kubectl is not directly available to your currently running powershell or terminal session. if you do try to run the kubectl command, it would show the error :
C:\projects\aks_car_mechanic\apps>kubectl
'kubectl' is not recognized as an internal or external command,
operable program or batch file.
Like recently I installed the kubectl package for connecting and managing AKS deployments and monitoring. And it required one to install/execute :
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/windows/amd64/kubectl.exe
After installing the kubectl package , however kubectl is not directly available to your currently running powershell or terminal session. if you do try to run the kubectl command, it would show the error :
C:\projects\aks_car_mechanic\apps>kubectl
'kubectl' is not recognized as an internal or external command,
operable program or batch file.
One remedy is to exit your powershell terminals and the other trick is to add the path to the PATH env variable and to do this, you should run
$env:Path += 'C:\Users\<username>\.azure-kubectl'