Ajouter un agent Azure

Infos

URL : https://dev.azure.com/prodigious-france

PAT : aab-default

Installation

ssh os303
sudo su
su - azure-agent-publicisfrance-com
wget https://vstsagentpackage.azureedge.net/agent/3.230.0/vsts-agent-linux-x64-3.230.0.tar.gz
mkdir push601-default-002 && cd push601-default-002
tar zxvf ~/vsts-agent-linux-x64-2.213.2.tar.gz
./config.sh


  ___                      ______ _            _ _
 / _ \                     | ___ (_)          | (_)
/ /_\ \_____   _ _ __ ___  | |_/ /_ _ __   ___| |_ _ __   ___  ___
|  _  |_  / | | | '__/ _ \ |  __/| | '_ \ / _ \ | | '_ \ / _ \/ __|
| | | |/ /| |_| | | |  __/ | |   | | |_) |  __/ | | | | |  __/\__ \
\_| |_/___|\__,_|_|  \___| \_|   |_| .__/ \___|_|_|_| |_|\___||___/
                                   | |
        agent v2.213.2             |_|          (commit 4f90e68)


>> End User License Agreements:

Building sources from a TFVC repository requires accepting the Team Explorer Everywhere End User License Agreement. This step is not required for building sources from Git repositories.

A copy of the Team Explorer Everywhere license agreement can be found at:
  /home/www/azure-agent.publicisfrance.com/push601-default-002/license.html

Enter (Y/N) Accept the Team Explorer Everywhere license agreement now? (press enter for N) > Y

>> Connect:

Enter server URL > https://dev.azure.com/prodigious-france
Enter authentication type (press enter for PAT) >
Enter personal access token > ****************************************************
Connecting to server ...

>> Register Agent:

Enter agent pool (press enter for default) > Default
Enter agent name (press enter for os303) > push601-default-002
Scanning for tool capabilities.
Connecting to the server.
Successfully added the agent
Testing agent connection.
Enter work folder (press enter for _work) >
2022-12-01 16:46:02Z: Settings Saved.

sudo ./svc.sh install
sudo ./svc.sh start
exit

Monitoring

Editer inventory/host_vars/os303.pkgdata.net/vars :

azure_agent_endpoints:
  - https://dev.azure.com/prodigious-france/_apis/distributedtask/pools/1/agents/144?api-version=7.0
  - https://dev.azure.com/prodigious-france/_apis/distributedtask/pools/1/agents/145?api-version=7.0
  - https://dev.azure.com/prodigious-france/_apis/distributedtask/pools/1/agents/146?api-version=7.0
  - https://dev.azure.com/prodigious-france/_apis/distributedtask/pools/1/agents/147?api-version=7.0
  - https://dev.azure.com/prodigious-france/_apis/distributedtask/pools/1/agents/148?api-version=7.0
  - https://dev.azure.com/prodigious-france/_apis/distributedtask/pools/1/agents/149?api-version=7.0
  - https://dev.azure.com/prodigious-france/_apis/distributedtask/pools/11/agents/143?api-version=7.0
  - https://dev.azure.com/prodigious-france/_apis/distributedtask/pools/11/agents/389?api-version=7.0