Module: azure-vnet
8.1.0
Features
- ignore inline rules in network security groups and take current subscription as alias in peering usage (#114) (3a4b634)
Module: azure-sa
3.0.0
⚠ BREAKING CHANGES
- added missing properties, aligned azure files authentication properties (#121)
Upgrade from v2.2.0 to v3.0.0:
- Update module reference to: version = “~> 3.0”
Important: The property storage_account_name
has been replaced by storage_account_id
in version 3.0. This update will impact any existing storage account containers or file shares managed by Terraform. If these resources are already part of the Terraform state, applying the upgrade may cause Terraform to attempt a destroy and recreate action, leading to potential data loss.
To avoid this, you need to remove the resources from the state and re-import them. Here’s an example of how to do this:
Remove the container from the state:
removed {
from = module.storage["tfstate"].azurerm_storage_container.sc
lifecycle {
destroy = false
}
}
This block specifies that the storage container should be removed from Terraform’s state, but without actually destroying the resource in Azure.
Re-import the container with the updated storage_account_id:
import {
to = module.storage["tfstate"].azurerm_storage_container.sc["tfstate"]
id = "/subscriptions/<subscription_id>/resourceGroups/<resource_group_name>/providers/Microsoft.Storage/storageAccounts/<storage_account_id>/blobServices/default/containers/<container_name>"
}
Replace
By following these steps, you ensure that Terraform won’t destroy or recreate the storage container (or share), allowing for a smooth transition to version 3.0.
Features
Module: azure-cosmosdb
3.0.0
⚠ BREAKING CHANGES
- Data structure mongo databases has changed.
Features
Upgrade from v2.2.1 to v3.0.0:
- Update module reference to:
version = "~> 3.0"
- If using mongodb collection the data structure is slightly changed :
- see examples for the correct usage