Azure / terraform-azurerm-caf-enterprise-scale

Azure landing zones Terraform module
https://aka.ms/alz/tf
MIT License
832 stars 545 forks source link

Add support for azurerm provider v4 #1123

Open stawik-mesa opened 1 week ago

stawik-mesa commented 1 week ago

Community Note

Description

Is your feature request related to a problem?

Unable to upgrade my code and use azurerm v4.0.1.

Describe the solution you'd like

Currently the version is pinned to ~> 3.107. Therefore I am unable to upgrade to v4.

│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider hashicorp/azurerm: no available releases match the given constraints ~> 3.107, ~> 4.0, ~> 4.0.1
╵

Additional context

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide

matt-FFFFFF commented 1 week ago

Hi @stawik-mesa

We haven't yet tested this module with AzureRM 4.0.

If there are no breaking changes then we will update the provider version constraint. If there are we will await v7.0 of this module.

stawik-mesa commented 1 week ago

Hi @stawik-mesa

We haven't yet tested this module with AzureRM 4.0.

If there are no breaking changes then we will update the provider version constraint. If there are we will await v7.0 of this module.

Hi @matt-FFFFFF Thank you for the update. I just checked on the removed resources, none of them are used within this module. The only changes are on the following resources:

Not sure how this should be treated. For the changed default values from the provider, the "old" defaults could be set as default from the module instead of passing "null". And remove this with the next major release. What do you think?

matt-FFFFFF commented 1 week ago

Thank you for this detailed analysis. It looks like breaking changes are likely, meaning we will have to target v7

matt-FFFFFF commented 1 week ago

We will test to confirm