From the course: Learning Azure Kubernetes Service (AKS)

Connect to the AKS cluster

- [Instructor] To connect to an AKS cluster, we can use the Cloud Shell and the Azure portal. In the Azure portal, in the search box at the top, search for AKS, and then click on Kubernetes services. In here, pick one of your AKS clusters. For this one, I'm just going to pick aks-01. At the top, you'll see a Connect button. Go ahead and click on that. In this new popup blade, you'll see a set of information and steps to connect to your AKS cluster. First off, click on the Open Cloud Shell button. This will open the Microsoft Cloud Shell for you. Next, we're going to wait for it to automatically populate the commands, which are here. Now, if you are running this locally, you can actually copy these commands and paste them into your own shell as long as you're logged into Azure. Next up, we have some sample commands we can use. So for example, kubectl get deployments --all -namespaces=true. So, if we copy that and we'll paste that into the Cloud Shell, hit Enter, and we will get a list of all of our deployments inside the AKS cluster.

Contents