azure-devopsazure-devops-self-hosted-agent

How do I reconfigure Azure DevOps agent on server (windows OS)?


Agent which was configured to run as service earlier needs to be reconfigured to run interactively.

When I am trying to run agent's config.cmd as administrator to reconfigure the agent then a blank window in command prompt opens and gets closed by itself. There is nothing I see more than that.

I want to know the way we can reconfigure the agent.


Solution

  • Open a regular cmd as administrator, then cd to the agent folder, then run config.cmd.

    But when you will do it you will get a message that the agent already configured and you need to remove it and re-configure. so run config.cmd remove, after it run again config.cmd.