<p>I created a new cluster as per the <a href="https://learn.microsoft.com/en-us/azure/aks/kubernetes-walkthrough" rel="noreferrer">Azure guide</a> and created the cluster without issue but when I enter the <code>kubectl get nodes</code> to list the nodes I only get this response <code>Unable to connect to the server: net/http: TLS handshake timeout</code>.</p>

<p>I tried once in the Cloud Shell and once on my machine using the latest version of the Azure CLI (2.0.20).</p>

<p>I saw that there was a similar earlier issue regarding <a href="https://github.com/Azure/ACS/issues/4" rel="noreferrer">Service Principal credentials</a>, which I updated but that didn't seem to solve my issue either.</p>

<p>Any guidance would be greatly appreciated.</p>

<p>The solution to this one for me was to scale the nodes up — and then back down — for my impacted Cluster from the Azure Kubernetes service blade web console.</p>

<h1>Workaround / Potential Solution</h1>

<ol>
<li>Log into the Azure Console — Kubernetes Service blade.</li>
<li>Scale your cluster up by 1 node.</li>
<li>Wait for scale to complete and attempt to connect (you should be able to).</li>
<li>Scale your cluster back down to the normal size to avoid cost increases.</li>
</ol>

<p>Total time it took me ~2 mins.  </p>

<h2>More Background Info on the Issue</h2>

<p>Also added this solution to the full ticket description write up that I posted over here (if you want more info have a read): </p>

<p><a href="https://stackoverflow.com/questions/50726534/unable-to-connect-net-http-tls-handshake-timeout-why-cant-kubectl-connect">&#39;Unable to connect Net/http: TLS handshake timeout&#39; — Why can&#39;t Kubectl connect to Azure Kubernetes server? (AKS)</a></p>
