How to rename an existing agent pool in Team Foundation Server 2017?
I've created an agent pool in TFS 2017. Now I want to rename it for a better understanding.
Navigate to Project settings, Agent pools. Select your agent pool and choose Update all agents.
You can do this from the agent pools tab under your team project collection or account. When a newer version of the agent is only different in minor version, it is automatically upgraded by Team Services or TFS. This upgrade happens when one of the tasks requires a newer version of the agent.
You can use the rename command of the tf command-line utility to move or rename a version-controlled item in your workspace. Use the rename command to move multiple files by specifying wildcard characters.
Currently only private agent name can be renamed, run config. cmd remove first, that will take care of remove the windows service and also remove the agent from your azure devops , then run config. cmd again to re-config in order to change the agent name, the agent name is a primary key in the backend.
We cannot rename the existing agent pool in TFS, you can delete the existing agent pool, then create a new pool with the name for a better understanding, then reconfigure the agents with the new pool.
On the Settings->Agent Pools, for each Pool Name on its right there is a small black triangle pointing down, left click on it, a context menu will appear, last menu item is 'Delete', click on that the Agent Pool will be gone after a confirmation dialog.
Deploy an agent on Windows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With