microsoft / VSTSAgent.PowerShell

Tools for managing and automating your Azure DevOps Agents.
MIT License
29 stars 23 forks source link

Does replace existing agent keep existing user capabilties? #9

Closed japj closed 6 years ago

japj commented 6 years ago

Install-VSTSAgent has an option to replace an existing agent. Will existing user capabilities be kept when ‘upgrading’ an agent or will user capabilities need to be manually set again after uninstall/re-install of the agent?

jwittner commented 6 years ago

The capabilities will be based on the new agent. Using the replace flag will force any currently registered agents with the same name to be replaced in the pool, instead of reporting an error. This is different than an 'upgrade' scenario I think. If you're looking for a simple path to update the VSTS agent versions you have you can force that by right clicking the pool in your browser and selecting 'Update all agents'.

See here for more docs: https://docs.microsoft.com/en-us/vsts/build-release/concepts/agents/agents?view=vsts#agent-version-and-upgrades

I hope that answered your question! Let me know if not. =)