Tanzu CLI run on Windows failed with "executable tanzu not found"
search cancel

Tanzu CLI run on Windows failed with "executable tanzu not found"

book

Article ID: 398662

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

  • Run Tanzu CLI on Windows platform fails with below messages:

    tanzu context create <context> --endpoint https://<supervisor-address>  --insecure-skip-tls-verify

    [x] : failed to create context "<context>" for a kubernetes cluster, Failed to invoke API on cluster : Get "https://<supervisor-address>:443/version?timeout=1m0s": getting credentials: exec: executable tanzu not found

    It looks like you are trying to use a client-go credential plugin that is not installed.

    To learn more about this feature, consult the documentation available at:
    https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins

  • The same command can run on Linux platform successfully.  

Environment

vSphere with Tanzu
Tanzu CLI

Resolution

To resolve the issue, add the Tanzu CLI application to system environment:

  1. Right click "This PC" in Windows.
  2. Click "Properties".
  3. Click "Advanced system settings".
  4. Under tab "Advanced" click "Environment Variables".
  5. In "System variables" select "Path" and click "Edit"
  6. Click "New" to add the path of Tanzu CLI application.
  7. Click OK to save the change. 
  8. Restart Windows.
  9. Run the Tanzu CLI command again which should be successful.