<p>I created kubernetes cluster in my Azure resource group using <strong>Azure Kubernetes Service</strong> and login into cluster with the help of resource group credentials through  Azure CLI. I could opened the kubernetes dashboard successfully for the first time.  After that i deleted my resource group and other resource groups which are defaultly created along with kubernetes cluster. I created resource group and kubernetes cluster one more time in my azure account. i am trying to open the kubernetes dashboard next time, getting error like 8001 port not open. I tried with proxy port-forwarding, but i don't have idea how to hit the dashboard url with different port?.</p>

<p>Could anybody suggest me how to resolve this issue? </p>

BSG
<p>I think you need to delete your kubernetes config and pull new one with <code>az aks get-credentials</code> or whatever you are using, because you are probably still using config from the previous cluster (hint: it wont work because its a different cluster).</p>

<p>you can do that by deleting this file: <code>~/.kube/config</code> and pull the new one and try <code>kubectl get nodes</code>. if that works try the port-forward. It is not port related. something is wrong with your config\az cli</p>

<p>ok, I recall in the previous question you mentioned you started using RBAC, you need to add cluster role to the dashboard:</p>

<pre><code>kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
</code></pre>

<p><a href="https://learn.microsoft.com/en-us/azure/aks/kubernetes-dashboard#for-rbac-enabled-clusters" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/aks/kubernetes-dashboard#for-rbac-enabled-clusters</a></p>
