Skip to content

Releases: hashicorp/packer-plugin-azure

v2.4.0

06 Aug 09:58
4a1bd13
Compare
Choose a tag to compare

2.4.0 (August 6, 2025)

What's Changed

Exciting New Features

  • Allow parent SIG images to referenced by their ID in GH-482
  • Added KeyVaultSecret Datasource in GH-516

Bug Fixes

  • Updating ARM Builder Disk Steps order in GH-505
  • Prevents snapshot overwrite conflicts in managed images in GH-509
  • Fetching the Blob Endpoint for Deletion from Account in GH-508
  • fixes subscription ID while validating image in GH-473

Other Changes

  • Update Golang-JWT to v5.2.2 in GH-493
  • Enforce /x/net 0.38 in GH-494
  • Updated SharedImageGallery param docs examples in GH-519
  • CRT Migration Changes in GH-517

v2.3.3

14 Apr 20:23
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.2...v2.3.3

v2.3.2

24 Mar 22:14
cabeafb
Compare
Choose a tag to compare

What's Changed

This release contains a fix for a weird to pin down HCP Packer Ancestry issue. In some cases the return value of the Gallery Image Version API doesn't contain the storage profile, which it does for others. This only occurs on some users SIG builds that are sourced from a SIG/ACG image created via VM (as opposed to a managed image). This resulted in the HCP Packer Ancestry relationship not being created where it should.

We didn't identify the reason for the API not returning the storage profile here, since "it works on my machine", but the plugin is now more resilient to this Azure API inconsistency.

Bug fixes

  • fix: Handle checking for SIG-sourced parent when Azure API doesn't return Storage Profile by @JenGoldstrich in #479

Full Changelog: v2.3.1...v2.3.2

v2.3.1

22 Mar 01:54
15af01f
Compare
Choose a tag to compare

What's Changed

This release contains two small changes to log more accurately what happens when the Azure plugin fails to fetch a SIG source name.

For HCP Packer Ancestry this plugin will try and fetch the source image name of the SIG, this is done because it can not be inferred since the SIG image may originally come from either a Virtual Machine, or a managed image, and we have to check the storage ID to figure out what type of image it is. When we fail the API check to get the gallery image version, the plugin continues since this was additional logic added for HCP Packer, and was added to not be a breaking change, but the error message was squashed before this release

  • Clearly log result of failing to get the source name for SIG-sourced builds. by @JenGoldstrich in #476
  • Clearly log result of unexpected Azure payloads when fetching a source image name on SIG-sourced builds by @JenGoldstrich in #477

Full Changelog: v2.3.0...v2.3.1

v2.3.0

24 Feb 19:14
Compare
Choose a tag to compare

Breaking Changes

On March 31st 2025 Azure will block the creation of basic public IP addresses, prior to this version would still create basic sku public IP's which is when the field private_virtual_network_with_public_ip is set, which enables bringing your own virtual network and subnet, and having the plugin create a network interface and public IP to connect to the build virtual machine from the host machine.

As of v2.3.0 a standard SKU Public IP Address will be created in Azure, however standard SKU Public IP's require a network security group to define any ingress, otherwise it is all blocked. This means users will need to create a network security group to allow ingress to their virtual networks.

There is an open request to allow Packer to create a network security group for users this was opened before this change. This can cause conflicts with the subnet's network security group, but since we expect that users may run into change, we will likely need to add support for Packer creating the NSG at a NIC level. If you have any feedback on how we address this problem, please reach out here #468 asap.

If you are using private_virtual_network_with_public_ip, you should upgrade to this release by March 31st 2025 or your builds will likely start failing.

You can read more about this deprecation in this official post from Microsoft

If you want to roll back to the previous behavior for this you can set the public_ip_sku field to Basic, but this will stop working on March 31st as stated above

What's Changed

Other Changes

  • Bump github.com/hashicorp/packer-plugin-sdk from 0.5.4 to 0.6.0 by @dependabot in #464
  • Make it clearer where users can find a target_region example by @JenGoldstrich in #470
  • Use Standard IP SKU by default for edge case with private_virtual_network_with_public_ip field by @JenGoldstrich in #469

Full Changelog: v2.2.1...v2.3.0

v2.2.1

27 Jan 22:54
Compare
Choose a tag to compare

What's Changed

Exciting New Features 🎉

Full Changelog: v2.2.0...v2.2.1

v2.2.0

05 Nov 20:14
Compare
Choose a tag to compare

What's Changed

⚠️ Starting in April 2025, plugin versions prior to this may experience failures when the public_ip_sku field introduced in v2.1.4 is not set to Standard, or when bringing your own virtual network.

This release updates the default SKU of the Public IP address that this plugin creates when users do not provide a prior setup virtual network., https://azure.microsoft.com/en-us/updates/upgrade-to-standard-sku-public-ip-addresses-in-azure-by-30-september-2025-basic-sku-will-be-retired/, starting in April 2025 Azure will no longer allow the creation of basic IP SKUs, in version 2.1.4 of this plugin we included a warning informing users of this upcoming deprecation, please update as soon as possible, if you run into any issues upgrading please reach out to us via a GitHub issue.

Full Changelog: v2.1.9...v2.2.0

v2.1.9

29 Oct 23:05
Compare
Choose a tag to compare

What's Changed

Other Changes

New Contributors

Full Changelog: v2.1.8...v2.1.9

v2.1.8

26 Aug 17:06
Compare
Choose a tag to compare

What's Changed

Doc improvements 📚

  • Add docs for target_region replicas field, make error message for it clearer by @JenGoldstrich in #437

Other Changes

  • Fix replicated_regions not using shared_image_gallery_replica_count for build location when its specified in the list by @JenGoldstrich in #438
  • Add Subscription ID and Tenant ID to build variables by @JenGoldstrich in #439
  • chore: update version.go by @tenthirtyam in #435

New Contributors

Full Changelog: v2.1.7...v2.1.8

v2.1.7

20 Jun 17:17
Compare
Choose a tag to compare

What's Changed

Other Changes

Full Changelog: v2.1.6...v2.1.7