title: VSTS Azure File Copy task - Access denied
body: <p>The VSTS task - Azure File Copy keeps giving me an access denied error, even though I have configured WinRM over HTTPS for my Azure VM.</p>
  
  <p>I am running the build agent locally (not hosted) and from my machine, I am successfully able to PsRemote into my Azure VM.</p>
  
  <p>i.e. Enter-PsSession executes successfully.  </p>
  
  <p>I tried giving all sorts of combinations for the user from .\Administrator .\administrator nithish and .\nithish (which is the user name I chose while creating the VM)  </p>
  
  <p>What can be the problem here?  </p>
  
  <p>Detailed error  </p>
  
  <blockquote>
    <p>Connecting to remote server dscwitharm.eastus2.cloudapp.azure.com failed with the following error message : Access is denied. 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="nofollow">https://aka.ms/azurefilecopyreadme</a></p>
  </blockquote>