Breaking Changes
This release is essentially a re-write of the module moving from azurerm to azapi in preparation for a V1 release. Unfortunately, due to the way azurerm resources are structured it was not possible to migrate to azapi in a non-breaking way. The breaking changes include:
- Variable interfaces have been updated to more closely match the ARM API interface
- Multiple azurerm resources for sites and slots have been consolidated into a 2 azapi resources
- Due to this being a resource module, it should never have supported the management of Application Insights, so this has been removed from the module. It has been added to all the examples to show how to use it though.
Given these changes, it was not possible for us to support a seamless migration path with moved blocks.
Customers migrating to v0.21.0 need to:
- Update the module version
- Run
terraform init - Run
terraform plan - Update module inputs to match the updated variables and run
terraform planagain until validation passes - Identify which resources in the plan are going to be destroyed and recreated
- For each resource you wish to retain and don't wish to destroy and recreate, add a
movedblock - For application insights, you'll need to create or leverage an existing log analytics workspace and create a new application insights resource in your desired state. Leverage these modules for that purpose: https://registry.terraform.io/modules/Azure/avm-res-insights-component/azurerm/latest and https://registry.terraform.io/modules/Azure/avm-res-operationalinsights-workspace/azurerm/latest. You'll then need to add a
movedblock if you don't wish to destroy and recreate it
We appreciate this update will result in significant effort for some customers and apologise for that. However, we needed to get to this module structure in order to support all features of app service, function apps, and logic apps moving forward as well as being able to get to the v1 release.
What's Changed
- feat: convert to azapi by @jaredfholgate in #258
New Contributors
- @jaredfholgate made their first contribution in #258
Full Changelog: v0.20.0...v0.21.0