Hi Steven Bruce,
Great! That you got the issue resolved.
Upgrading to AzureRM provider version 4.38.1 likely a great step to improved the lifecycle handling for azurerm_static_web_app
and similar resources.
- Lock provider versions in your Terraform config to avoid unexpected behavior:
terraform { required_providers { azurerm = { source = "hashicorp/azurerm" version = ">= 4.38.1" } } }
- Check the changelog for provider updates: https://github.com/hashicorp/terraform-provider-azurerm/blob/main/CHANGELOG.md
- Test upgrades in a staging environment if possible, especially for production-critical infrastructure.
Thanks!