In this blog post, I will show you how to connect to Azure AKS Web UI (Dashboard) from your local machine with Azure CLI.
Requirements
To complete this task, you need to install Azure CLI on your machine and install Web UI on your AKS cluster.
In this post, I am assuming you have installed Web UI already.
Get Started
To get started, Open PowerShell or Bash Shell and type the following command.
The command below will install the Azure CLI AKS command module
az aks install-cli
Next, I will log in to Azure using the command below:
az login
If you have more than one subscription in your Azure tenant, use the command below to select (change the name), if you have only one tenant there is not need to use this command.
az account set --subscription "pay-as-you-go"
Next, I will run the commands below that will authenticate me to the AKS Cluster.
Note: Make sure you change the Resource Group and AKS Cluster name.
az aks get-credentials –resource-group containers –name deploy
kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
az aks browse --resource-group containers --name deploy

To view Web UI, use the URL below.
