<p>I followed the Quickstart docs (<a href="https://learn.microsoft.com/en-gb/azure/aks/kubernetes-walkthrough-portal" rel="nofollow noreferrer">here</a>) to deploy a k8s cluster in the Western Europe region. The cluster boots up fine, but I cannot connect to it using kubectl - kubectl times out while trying to perform a TLS handshake:</p>

<pre><code>Unable to connect to the server: net/http: TLS handshake timeout
</code></pre>

<p><a href="https://github.com/Azure/AKS/issues/112" rel="nofollow noreferrer">There is currently a github issue where others are reporting the same problem.</a></p>

<p>Following some advice on the thread, I attempted to perform an upgrade from 1.8.1 to 1.8.2, which failed:</p>

<pre><code>bash-4.3# az aks upgrade --resource-group=k8s --name=phlo -k 1.8.2
Kubernetes may be unavailable during cluster upgrades.
Are you sure you want to perform this operation? (y/n): y
 / Running ..
Deployment failed. Correlation ID: &lt;redacted&gt;. Operation failed with status: 200. Details: Resource state Failed
</code></pre>

<p>According to others on the github thread, it seems to be a region-specific issue.</p>

<p>The solution to this one for me was to scale the nodes in my Cluster from the Azure Kubernetes service blade web console.</p>

<h1>Workaround / Solution</h1>

<p>An interesting solution (worked for me!) to test...</p>

<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>Added this 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 AKS server?</a></p>
