I want to install an azure agent onto my VM and have it appear as an Environment resource as described here: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/environments-virtual-machines?view=azure-devops .
This works if you run the script interactively, however when I use --unattended
(as described here: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops#unattended-config ) there is no longer a way to specify tags. The --addDeploymentGroupTags
option doesn't work with Environment agents.
How do I automate the adding of a VM as an environment resource with tags?