| ms.topic | include |
|---|---|
| ms.service | azure-devops-pipelines |
| ms.manager | mijacobs |
| ms.author | sdanie |
| author | steved0x |
| ms.date | 06/13/2023 |
The agent can be set up from a script with no human intervention.
You must pass --unattended and the answers to all questions.
::: moniker range="<=azure-devops"
[!INCLUDE unattend]
::: moniker-end
./config.sh --help always lists the latest required and optional responses.
If you're having trouble with your self-hosted agent, you can try running diagnostics. After configuring the agent:
./run.sh --diagnosticsThis will run through a diagnostic suite that may help you troubleshoot the problem. The diagnostics feature is available starting with agent version 2.165.0.
:::moniker range=">azure-devops-2022"
Set the value of Agent.Diagnostic to true to collect additional logs that can be used for troubleshooting network issues for self-hosted agents. For more information, see Network diagnostics for self-hosted agents.
:::moniker-end
To learn about other options:
./config.sh --helpThe help provides information on authentication alternatives and unattended configuration.