title: Unable to run powershell script remotely leading to test agent deployment failures in Azure
body: <p>I am having a setup where I need to run automation script from a test agent. But the build step fails
  with the following message</p>
  
  <pre><code>connecting to remote server DevBox02 failed with the following error message 
  : The client cannot connect to the destination specified in the request. Verify that the 
  service on the destination is running and is accepting requests. Consult the logs and 
  documentation for the WS-Management service running on the destination, most commonly IIS or
  WinRM. If the destination is the WinRM service, run the following command on the 
  destination to analyze and configure the WinRM service: "winrm quickconfig". For more 
  information, see the about_Remote_Troubleshooting Help topic.'. For troubleshooting
  </code></pre>
  
  <p>But when I analysed the test agent machine, I am getting the messsage that WinRM service is already running </p>
  
  <pre><code>PS C:\Windows\system32&gt; winrm quickconfig
  WinRM service is already running on this machine.
  WinRM is already set up for remote management on this computer.
  PS C:\Windows\system32&gt;
  </code></pre>
  
  <p>Not sure why I am getting this message when I am able to see WinRM Service is up and running</p>
  
  <p>I have also configured the firewall exception . </p>
  
  <p>Please help me in pointing what I am missing. Thanks a lot</p>