title: Issue on installing a build agent for TFS 2017
body: <p>I have a stand-alone single server TFS 2017 RTM installation on SQL Express. It is not in any domain, but on my laptop. Have brought it up for my own usage (for learning too). Set it up to run on a self-signed certificate for SSL.</p>
  
  <p>Thought of setting up a vNext build agent on the same machine. I remember somewhere in my brain that build machine should be not in the TFS app tier, to reduce surface attack. Well I don't really bother now about surface attacks. But rather I need a working TFS with build setup as well.</p>
  
  <p>While configuring after entering the URL (https URL), I get prompted for authentication type. I typed Negotiate. After entering credentials, I get below error.</p>
  
  <pre><code>TF400813: Resource not available for anonymous access. Client authentication required.
  </code></pre>
  
  <p>Upon using Integrated for the authentication type, I get below error.</p>
  
  <pre><code>An error occurred while sending the request.
  Failed to connect.  Try again or ctrl-c to quit
  </code></pre>
  
  <p>When I use the http site for URL I get below error for both the authentication types.</p>
  
  <pre><code>Connecting to server ...
  Found
  Failed to connect.  Try again or ctrl-c to quit
  </code></pre>
  
  <p>I am able to ping to my URL.</p>
  
  <p>Below is the error log from _diag folder.</p>
  
  <pre><code>[2016-11-23 19:53:40Z INFO CredentialManager] Creating type Integrated
  [2016-11-23 19:53:40Z INFO CredentialManager] Creating credential type: Integrated
  [2016-11-23 19:53:40Z INFO IntegratedCredential] GetVssCredentials
  [2016-11-23 19:53:40Z INFO ConfigurationManager] cred retrieved
  [2016-11-23 19:53:40Z INFO Terminal] WRITE LINE: Connecting to server ...
  [2016-11-23 19:53:41Z INFO CommandSettings] Flag 'unattended': 'False'
  [2016-11-23 19:53:41Z ERR  Terminal] WRITE ERROR (exception):
  [2016-11-23 19:53:41Z ERR  Terminal] Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Found
     at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
     at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.&lt;SendAsync&gt;d__45.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
     at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.&lt;SendAsync&gt;d__42`1.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
     at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.&lt;GetConnectionDataAsync&gt;d__6.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
     at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.&lt;ConnectAsync&gt;d__41.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.VisualStudio.Services.Agent.AgentServer.&lt;ConnectAsync&gt;d__3.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.&lt;TestConnectAsync&gt;d__10.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.&lt;ConfigureAsync&gt;d__7.MoveNext()
  </code></pre>