azure/Azure Kubernetes set context

Sets the kubeconfig on the machine to communicate with the Azure Kubernetes cluster.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 23, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: azure/aks-set-context@60623acbdcbbdcf799ad50a1adf8703874339f8b # v5.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
resource-groupResource Group Nameyes
cluster-nameAKS Cluster Nameyes
subscriptionAKS Cluster Subscriptionno
adminGet cluster admin credentials. Values: true or falsenofalse
use-kubeloginEnables kubelogin for non-admin user scenario. Values: true or falsenofalse
public-fqdnGet private cluster credential with server address to be public fqdn. Values: true or falsenofalse
resource-typeEither Microsoft.ContainerService/managedClusters or Microsoft.ContainerService/fleets'.noMicrosoft.ContainerService/managedClusters

no outputs