RSW
RSW

Reputation: 1376

How to check the self-hosted Azure Devops agent configuration details on Linux

We have many Azure Devops Projects and agents pools. One of the Linux machine having self-hosted agent is not working and I need to collect details about this installed agent.

Is there direct way to check the below details for agent:

Documentation speaks very little about it only indicating a systemd service file like /etc/systemd/system/vsts.agent.{tfs-name}.{agent-name}.service.

Is there more explicit command(s) to determine these details?

Upvotes: 3

Views: 2457

Answers (2)

Petar R
Petar R

Reputation: 36

There is a file myagent/.agent with these details:

{
"acceptTeeEula": true,
"agentId": 13,
"agentName": "centos",
"poolId": 13,
"poolName": "ubuntu-linux-local-hyperv",
"serverUrl":"https://dev.azure.com/org_name/",
"workFolder": "_work"
}

Upvotes: 2

Minxin Yu - MSFT
Minxin Yu - MSFT

Reputation: 4116

On Windows, there is .agent (no name before) file in agent folder that can be opened with txt. Try finding the similar file.

Content:

{
  "agentId": 9,
  "agentName": "XX",
  "poolId": 1,
  "poolName": "Default",
  "serverUrl": "https://dev.azure.com/XXX/",
  "workFolder": "_work"
}

Upvotes: 4

Related Questions