Automation Suite - AKS - Changing between multiple contexts

How to change context if there are multiple clusters to connect from same server?

  1. To view the current context, run the following command:

# kubectl config current-context

default

  1. To view available contexts, run the following command. In the following ouput, * will be shown in front of current context

# kubectl config get-contexts

CURRENT NAME CLUSTER AUTHINFO NAMESPACE

AKS AKS clusterUser_AKS

* default default default

  1. To change context, run the following command:

# kubectl config use-context default

  1. Switched to context "default".