Skip to content

[User Guide] Upgrade from v4.2.0 to v5.0.0

github-actions edited this page Oct 23, 2023 · 3 revisions

Overview

The v5.0.0 release makes the following breaking changes:

  1. Strict mode for subscription association is no longer default. This better aligns with subscription vending however please see explanatory notes below.

Strict Mode for Subscription Association

Existing module users should explicitly set strict_subscription_association to true in their calling module to ensure that the module continues to behave as it does now:

module "enterprise_scale" {
  source = "Azure/caf-enterprise-scale/azurerm"
  version = "5.0.0"
  # Other variables omitted for brevity...

  strict_subscription_association = true
}

For new users of the module we recommend that you leave strict_subscription_association set to its new default of false.

If you want to migrate from true (the old defaut) to false (the new default) then you will need to follow the steps below:

  • Run terraform import for all the subscriptions associations managed by the module:
terraform import 'module.<YOUR_MODULE_REFERENCE>.azurerm_management_group_subscription_association.enterprise_scale["/providers/Microsoft.Management/managementGroups/<YOUR_MG>/subscriptions/<YOUR_SUBSCRIPTION_ID>"]' '/providers/Microsoft.Management/managementGroups/<YOUR_MG>/subscriptions/<YOUR_SUBSCRIPTION_ID>'

Full list of changes

For more information

Full Changelog: v4.2.0...v5.0.0

Next steps

Take a look at the latest User Guide documentation and our Examples to understand the latest module configuration options, and review your implementation against the changes documented on this page.

Need help?

If you're running into problems with the upgrade, please let us know via the GitHub Issues. We will do our best to point you in the right direction.

Clone this wiki locally