runner-images
runner-images copied to clipboard
New parameter 'AzureTags' in build-image.ps1
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:
- #10883
- #discussioncomment-4591809
- this PR enables the intention of PR 7043
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.