au-packages icon indicating copy to clipboard operation
au-packages copied to clipboard

[azure-pipelines-agent] Feature request: Install Only Option Don't configure

Open Marcus-James-Adams opened this issue 11 months ago • 1 comments

We create gold images for our VM's using packer, part of that process involves sys prepping so that machines created will have a new name

In our scenario, we would like to install the azure-pipelines-agent via Chocolatey as part of the packer build process. Once the machines are built with this image we would then like to run config.cmd (we have a process for this) to register the agent against the new machine name with DevOps.

With the current choco script, it configures as part of the install so agent registers itself as the packer image VM name

Marcus-James-Adams avatar Jan 27 '25 12:01 Marcus-James-Adams

So just checking, have you tried installing the package without providing any package parameters?

The chocolateyInstall.ps1 script only runs configure if $configOpts has been populated, and that is only done if the url parameter is supplied.

flcdrg avatar Jan 28 '25 08:01 flcdrg