Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New parameter 'AzureTags' in build-image.ps1 #10884

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

baidarka
Copy link

@baidarka baidarka commented Nov 1, 2024

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 baidarka changed the title New paramter AzureTags in build-image.ps1 New parameter AzureTags in build-image.ps1 Nov 1, 2024
@baidarka baidarka changed the title New parameter AzureTags in build-image.ps1 New parameter 'AzureTags' in build-image.ps1 Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant