"The SSL certificate contains a common name (CN) that does not match the hostname." in VSTS Deployment : <p>I am using VSTS to deploy to an Azure VM.  In my release definition, I receive the following error when trying to copy files over:</p>

<blockquote>
  <p>The SSL certificate contains a common name (CN) that does not match
  the hostname. For more information, see the
  about_Remote_Troubleshooting Help topic.To fix WinRM connection
  related issues, select the 'Enable Copy Prerequisites' option in the
  task. If set already, and the target Virtual Machines are backed by a
  Load balancer, ensure Inbound NAT rules are configured for target port
  (5986). Applicable only for ARM VMs. For more info please refer to
  <a href="https://aka.ms/azurefilecopyreadme" rel="noreferrer">https://aka.ms/azurefilecopyreadme</a>};]</p>
</blockquote>

<p>I am not using a load balancer.  I noticed that the issue occurs whenever I add a DNS name label for my VM in the Azure portal (in the public IP settings).</p>
