title: Connect Deployment Agent to Visual Studio Online if not part of domain
body: <p>I'm installing the Microsoft Deployment Agent 2013 onto an Azure VM. In order to connect to my Release Management Server ( Visual Studio Online in my case ) I need to authenticate either as local system or with a custom account:</p>
  
  <p><img src="https://i.stack.imgur.com/sBCBQ.png" alt="enter image description here"></p>
  
  <p>So with my credentials - I am validated to use the Release Management Service, but I cannot connect with them to the Release Management Server:</p>
  
  <pre><code>I, 2015/02/04, 16:50:11.245, User [ME] is system, Admin  
  I, 2015/02/04, 16:50:11.260, Validated account to use as identity for Release Management Services. 
  I, 2015/02/04, 16:50:11.260, Validating Release Management Server for Team Foundation Server 2013... 
  E, 2015/02/04, 16:50:11.448, Got a non-OK status code of NonAuthoritativeInformation from http://whatever.visualstudio.com/...
  </code></pre>
  
  <p>Of course - the credentials with which I login to the box are not the same as with which I have access to RM server. So you I figured I had 2 options:</p>
  
  <ul>
  <li>Add an identical account with which I have access to RM server to the local box: didn't work, my ...@hotmail.com username is too long.</li>
  <li>Add the credentials of the box to Visual Studio Online: didn't work, it needs to send out that invitation e-mail.</li>
  </ul>
  
  <p>The other option is of course to use Release Management without the agent. Which uses remote powershell. That didn't work either - the deployment fails with:</p>
  
  <pre><code>Connecting to remote server boxcloudapp.net failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
  </code></pre>
  
  <p>From what I read, I suspect this is because the powershell runs over SSL and offers the self signed cert to Release Management which is not trusted as root CA.</p>
  
  <p>What am I doing wrong here? It can't be that hard, right?</p>