microsoft / vso-agent

Visual Studio Team Services and TFS agent for Mac OSX and Linux
MIT License
132 stars 57 forks source link

ErrorConnectingToTheServer Forbidden #239

Closed digitalanalogue9 closed 8 years ago

digitalanalogue9 commented 8 years ago

Hi, when I run vso agent from powershell I see the problem ErrorConnectingToServer Forbidden

.\Agent\VsoAgent.exe "/Configure" "/RunningAsService" "/ServerUrl:https://****_.visualstudio.com" "/Name:agent-_" "/PoolName:Default" "/Login:_@**_,***;AuthType=PAT" "/WindowsServiceLogonAccount:NT AUTHORITY\NETWORK SERVICE" "/WindowsServiceLogonPassword" "/WorkFolder:c:\agent_work" "/Force"

The log file shows 15:53:58.121237 Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Forbidden

Does my account on VSTS need to be in a certain group? If I goto https://***.visualstudio.com/DefaultCollection/_admin/_AgentQueue?queueId=1&_a=roles my account is in Agent Queue Administrators and Agent Queue Roles

bryanmacfarlane commented 8 years ago

This is the node xplat agent. The output from above is from the windows agent.

Are you still having the issue? I can forward but it's not an issue with this repo ...