Reputation: 1376
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
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
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