I could able to download the private agent and tried to configure the agent with my laptop/local machine.At particular step its failing with the below error:
Error:
Loading RSA key parameters from file C:\vsts-agent-win-x64-2.127.0.credentials_rsaparams [2018-02-02 11:31:54Z WARN VisualStudioServices] Attempt 1 of POST request to projname.vssps.visualstudio.com/_apis/oauth2/token failed (WinHttp Error: ERROR_WINHTTP_TIMEOUT). The operation will be retried in 10.89 seconds
Its failing After the steps like server URL,PAT,agent pool name.Its saying connecting to server and then at testing agent connection step its taking some time and then cmd abruptly closing itself.So please do the needful.I have all the logs its creating under C:\vsts-agent-win-x64-2.127.0_diag folder.
set VSTS_HTTP_TIMEOUT=600
in powershell (timeout after 10 min) if you can using Windows OS, then close the agent config window, and reopen powershell window as Administrator to config your private agent? Besides, you can check connection to VSTS, you can clone a git repo from VSTS to check the connection. – Marina Liu