Share via

making kubectx command to work

Varma 1,620 Reputation points
2025-04-05T05:21:21.46+00:00

I have already connected to AKS from azure using azure cli from powershell,

but I want to execute below command to see AKS cluster is mapped to kubeconfig file,. but when I execute below command i am seeing below error. Please suggest tool link which I need to install to disappear below message

User's image

Azure Kubernetes Service
Azure Kubernetes Service

An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.

0 comments No comments

Answer accepted by question author

Abiola Akinbade 30,490 Reputation points Volunteer Moderator
2025-04-05T08:56:00.7633333+00:00

The error in your PowerShell terminal is because the kubectx command is not installed on your system. kubectx is a separate utility from kubectl and is used to quickly switch between Kubernetes contexts.

Try and install kubectx using chocolatey

choco install kubectx

Make sure you have chocolatey installed as well. Do this using https://chocolatey.org/install

You can mark it 'Accept Answer' and 'Upvote' if this helped you

Regards,

Abiola

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.