Agent as a service in VMs or Local machine
We can run the agent as a service in server using below setups.
First download the agent setup from agent pools for running that agent as a service in our VM.
You can download the agent as per your requirement eg: Linux , windows
Then go to the downloaded folder and run the config.cmd file
Asking your server url eg:https://ciqtest.visualstudio.com/
Enter the PAT(Personal Access Tokens) we can generate from the users security.
To add the PAT, please click add and mention the deploy and build agent service then click add or submit. It shows you the PAT please copy and paste it in the cmd.
It will ask for an agent pool name, when we give the corresponding pool name the agent will run based on the given pool name.
After configuring the agent , please run the run.cmd file in downloaded folder. It can run the TFS agent in our VMs.
Finally we are running the TFS agent as a service in our VMs, it can use our system capabilities.