Get a token for my Azure Kubernetes

Benjamin Balanger 20 Reputation points


I have an AKS deployed, and I want to access it (to get the list of pods for example) without using kubectl/kubelogin nor the Azure CLI.

I want to do it directly with curl on the Azure API and the kubernetes API, but I don't find the way to do it.

I'm pretty sure that kubelogin is doing some kind of request against the Kubernetes API using the credential that I get from User credential, but I don't find how to replicate it with curl.

Any help on this issue would be really appreciated.

Thank you,


Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,983 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Benjamin Balanger 20 Reputation points

    I found a solution by using with