Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to remove VSTS agent without PAT?

Tags:

I'm trying to remove a VSTS agent from a system, but I no longer possess the Personal Access Token (PAT) originally used during setup. An answer on this thread states that I can just delete the agent from the VSTS web UI, but I don't see that option besides nuking the entire agent pool (which is not a great option for us).

When I try to run config.cmd remove, these are my results:

PS C:\agent> .\config.cmd remove Removing agent from the server Enter authentication type (press enter for PAT) > Enter personal access token > Enter personal access token > Exiting... 
like image 581
alexk Avatar asked Sep 22 '17 14:09

alexk


People also ask

How do I uninstall VSTS agent?

Make sure to remove VSTS agent using config. cmd remove command for which, PAT is required, you don't need to use original PAT, you can apply a new PAT with Agent Pools (read, manage) scope and use it to remove agent.

How do I remove agents from agent pool Azure DevOps?

in the pool page in the first time you can't see the "delete" button, but if you press on the right line and dragging him to the right you will see the button.

What is Vsts agent?

This repository contains images for the Visual Studio Team Services (VSTS) agent that runs tasks as part of a build or release. VSTS agent images are tagged according to the base OS, an optional Team Foundation Server (TFS) version, and tools that are installed.


1 Answers

First, it’s better to remove VSTS agent through config.cmd remove command and the PAT is required, you don’t need to use original PAT, you can apply a new PAT with Agent Pools (read, manage) scope and use it to remove agent.

Secondly, without PAT:

Deleting agent from server:

enter image description here

Deleting agent service in local system through sc command if it is running as service: sc delete [service name].

After that, you can delete the agent files.

like image 170
starian chen-MSFT Avatar answered Nov 11 '22 01:11

starian chen-MSFT