Skip to content

[Question]: Configure Service #5542

@AiyionPrime

Description

@AiyionPrime

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)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions