github Azure/terraform-azurerm-avm-res-compute-virtualmachine v0.22.1

one hour ago

Fixes

This release fixes the known upgrade issues in v0.22.0.

  • os_disk.delete_option (Delete or Detach) restores the OS disk retention choice that the AzureRM provider's delete_os_disk_on_deletion = false gave you (#445). If you relied on that setting, set os_disk.delete_option = "Detach" before upgrading.
  • Upgrading from v0.21.0 no longer replaces VMs that have no zone, are in an availability set, or set secure_boot_enabled = false or only one UEFI flag.
  • Upgrading from v0.22.0 doesn't replace VMs.

Changing availability_set_resource_id, secure_boot_enabled or vtpm_enabled on an existing VM no longer recreates it.

Upgrading from v0.21.0 is still a breaking change. See the v0.22.0 release notes and the README upgrade sections.

Known issues

  • Role assignments that use a lowercase role name, such as reader, or a tenant-level role definition ID are replaced when upgrading from v0.21.0. A fix is in progress.
  • A failing run-command script no longer fails the apply, because the module doesn't send treatFailureAsDeploymentFailure.

What's Changed

Bug Fixes

  • fix: add os_disk.delete_option so upgrades can keep the OS disk by @thomascoats in #447

Other Changes

Full Changelog: v0.22.0...v0.22.1

Don't miss a new terraform-azurerm-avm-res-compute-virtualmachine release

NewReleases is sending notifications on new releases.