Is there a way to remove a VSTS agent without a PAT?

I am trying to remove the VSTS agent from the system, but I no longer have the personal access identifier (PAT) that was originally used during installation. The answer to this thread claims that I can simply remove the agent from the VSTS web interface, but I do not see this parameter, in addition, 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...
+4
source share
1 answer

Firstly, it is better to remove the VSTS agent using the config.cmd remove and PAT command, you do not need to use the original PAT, you can apply a new PAT area with agent areas (read, control) and use it to remove the agent.

-, PAT:

:

enter image description here

sc, : sc delete [service name].

.

+4

Source: https://habr.com/ru/post/1686217/


All Articles