Version of your agent? 2.105.0
OS of the machine running the agent? Windows
VisualStudio.com
The VSTS URL has changed but when I try to do .\config remove I get:
$ .\config remove
Removing service
Removing agent from the server
Enter authentication type (press enter for PAT) >
Enter personal access token > ****************
Failed: Removing agent from the server
The resource cannot be found.
@jdshkolnik what do you mean by VSTS URL has changed ?
@TingluoHuang Change the Account URL under Advanced administration tasks in the settings page: https://
You can delete in the web admin UI and just wack the agent folder.
If what you're trying to do is re-register the agent with a new visualstudio.com account (because the old one is no longer operational), you can delete the .agent, .credentials and .credentials_rsaparams files in the root of the folder. After that run ./config.cmd again and reconfigure as if it were a fresh install.
I think the same applies to when the _visualstudio.com_ account has been renamed (through the Admin settings).
I just had this same issue... was ugly.
Do the following
.\config.cmd removeC:\azagent\<A*>. Some of you might have multiple agents, so just delete the A* folder inside C:\azagent\*If there is a simple place to update the URL for the azagent like the registry or a config file, I would sure love to know it.
Thanks.
What If the servers are decommissioned and I want to remove the Build Agents which are offline on Web UI. Is there any option to remove the Red ones.
Thanks
I think you just go to organization settings and then find the deployment agents and click remove in the upper right. I'm not at a computer so those aren't exact steps but the UI has a remove button.
Most helpful comment
If what you're trying to do is re-register the agent with a new visualstudio.com account (because the old one is no longer operational), you can delete the
.agent,.credentialsand.credentials_rsaparamsfiles in the root of the folder. After that run./config.cmdagain and reconfigure as if it were a fresh install.I think the same applies to when the _visualstudio.com_ account has been renamed (through the Admin settings).