<p>I have docker desktop and kubectl installed , I am trying to connect to cluster from my local pc and getting above error
here is my kubeconfig file</p>
<pre><code>apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: ****
  name: AKS-CLUSTER
contexts:
- context:
    cluster: AKS-CLUSTER
    user: clusterUser_D-AKS_AKS-CLUSTER
  name: AKS-CLUSTER
current-context: AKS-CLUSTER
kind: Config
preferences: {}
users:
- name: clusterUser_D-AKS_AKS-CLUSTER
  user:
    client-certificate-data: ****
    client-key-data: ****
    token: ****
</code></pre>

megha
<p>One reason for this is the AKS cluster certificate getting rotated. See <a href="https://learn.microsoft.com/en-us/azure/aks/certificate-rotation" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/aks/certificate-rotation</a>.</p>
<p>As outlined there, run:</p>
<pre><code>az aks get-credentials -g &lt;RESOURCE_GROUP_NAME&gt; -n &lt;CLUSTER_NAME&gt; --overwrite-existing
</code></pre>
<p>and see if it gives you an output like:</p>
<pre><code>Merged &quot;&lt;CLUSTER_NAME&gt;&quot; as current context in /home/&lt;USER&gt;/.kube/config
</code></pre>
