runner-images icon indicating copy to clipboard operation
runner-images copied to clipboard

New parameter 'AzureTags' in build-image.ps1

Open baidarka opened this issue 3 months ago • 0 comments

Description

Adds support for a new parameter 'AzureTags' in 'build-image.ps1'. The value of this param is passed on to the existing 'azure_tags' param in the various Package template files. You can now easily set Azure tags on the Packer image build VM, if needed.

Usage example:

# In a pipeline, add the parameter '-AzureTags' to 'build-image.ps1'
# Pass in tags and values for the temporary Packer VM
images.CI/linux-and-win/build-image.ps1 -AzureTags @{ MyTag = "MyValue"; MyTag2 = "42" }

Related issue:

Check list

  • [x ] Related issue / work item is attached
  • [ ] Tests are written (if applicable)
  • [ ] Documentation is updated (if applicable)
  • [ x] Changes are tested and related VM images are successfully generated

Remarks

I adhered to the existing PowerShell style in build-image.ps1.

baidarka avatar Nov 01 '24 11:11 baidarka