Describe your question
I'd like to know if and how a configuration servicefile would be possible.
The goal is for the host to configure itself once per boot and configuration change.
The naive approach would be a one-shot service invoking configure.sh once per boot and per configuration change.
config.sh --unattended --url https://myurl --auth pat --token mytoken --pool mypool --agent myagentname --acceptTeeEula
This does work for a new agent, but not for one which was present before.
Something we could do is an unconditional and unevaluated (in order not to fail the one-shot service) config.sh remove prior configuring.
Is there something I can evaluate instead, in order to assess, whether a configure is even necessary or everything is already matching the configured agent?
Versions
v2.259.0 and NixOS 25.11
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Operation system
NixOS
Version controll system
git
Azure DevOps Server Version (if applicable)
No response
Describe your question
I'd like to know if and how a configuration servicefile would be possible.
The goal is for the host to configure itself once per boot and configuration change.
The naive approach would be a one-shot service invoking
configure.shonce per boot and per configuration change.config.sh --unattended --url https://myurl --auth pat --token mytoken --pool mypool --agent myagentname --acceptTeeEulaThis does work for a new agent, but not for one which was present before.
Something we could do is an unconditional and unevaluated (in order not to fail the one-shot service)
config.sh removeprior configuring.Is there something I can evaluate instead, in order to assess, whether a configure is even necessary or everything is already matching the configured agent?
Versions
v2.259.0 and NixOS 25.11
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Operation system
NixOS
Version controll system
git
Azure DevOps Server Version (if applicable)
No response