Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change identity of a TFS build agent

We have a TFS build agent that runs integration tests. Some of these tests make calls to web services on the Internet.

Our network uses a proxy to talk to the Internet.

Since the build agent runs under the identity on Network Service and the settings of Network Service are not configured to use the proxy, the tests fail.

How do I do one of the following?

  • Change the identity of the build agent to a domain account
  • Configure Network Service to use the proxy
like image 842
Shiraz Bhaiji Avatar asked Jan 31 '10 14:01

Shiraz Bhaiji


People also ask

How do I update my TFS agent?

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.

How do you're configure agent in Azure DevOps?

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.

How do I add an agent to TFS?

In your web browser, sign in to TFS, and navigate to the Agent pools tab: Navigate to your project and choose Settings (gear icon) > Agent Queues. Choose Manage pools.


1 Answers

To change the identity of the build agent you just go into Windows Services and change the identity of the TFSBuild service (service name is "Visual Studio Team Foundation Build").

like image 116
Jeff Avatar answered Sep 20 '22 09:09

Jeff