Azure AKS Error: Az aks Can not find kubectl executable in PATH

This week when I was testing the new Azure AKS Service I received the error below when I was trying to run an Azure Kubernetes AZ AKS command in Azure CLI 2.0.

Error message:

You get the message below when you are trying to run Azure AKS command and connect to Azure Kubernetes Service.

aks Can not find kubectl executable in PATH

Solution

To fix the problem, the command from C:\Program Files (x86) path using the line below:

Cd 'c:\program files (x86)'

Once done, Az AKS commands should work without any issue.

About Kubernetes

Kubernetes is an open-source system for automating deployment, scaling and management of containerized applications that was originally designed by Google and donated to the Cloud Native Computing Foundation.

About AKS

Released a few weeks ago and currently, in public preview, AKS offer a managed Kubernetes cluster that can be scaled up and on demand without needing to configure Containers, host, storage networks etc.

Leave a Reply

Your email address will not be published. Required fields are marked *