hashicorp / packer-plugin-azure

Packer plugin for Azure Virtual Machine Image Builders
https://www.packer.io/docs/builders/azure
Mozilla Public License 2.0
51 stars 80 forks source link

Add default build location when no target region is set #381

Closed nywilken closed 7 months ago

nywilken commented 7 months ago

Previously users were able to build to a Shared Image Gallery without specifying a primary target region, as it would default to the build location. This functionality was removed for the target_region block attribute in hopes that users would be more explicit on which regions to publish to. However, not having a primary target region breaks the existing behavior for publishing with no region set.

To avoid further breaking changes support for automatically adding a default target region is being added back but with a WARNING indicating that the behavior will change in a future release.