Skip to content

Add Azure AKS clusters#

This page explains how to connect to an Azure AKS cluster.

Prerequisites#

Before connecting to your AKS cluster, ensure that you have installed and configured:

Contact the Azure administrator of your organization for details.

Steps#

From the OS terminal

  1. Log in to the Azure CLI:

    az login
    
    2. Set the Azure subscription that contains your AKS cluster:

    az account set --subscription <subscription-id>
    
  2. Download cluster credentials:

    az aks get-credentials --resource-group <resource-group> --name <cluster-name>
    

    Example of system response:

    Merged "cluster-name" as current context in <path-to-kubeconfig>
    

After completing these steps, the AKS cluster is added to you local kubeconfig file. Then you can open Lens Desktop, and view it in Kubernetes Clusters > Local Kubeconfigs.