Azure / terraform-azurerm-caf-enterprise-scale

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

Race condition results in InternalServerError when deploying in vhub a firewall, an express route gateway, vhub peering and routing intent #1135

Open LaurentLesle opened 4 days ago

LaurentLesle commented 4 days ago

Community Note

Versions

terraform: 1.9.4

azure provider: 3.108.0

module: 6.1.0

Description

Describe the bug

When deploying the virtual hub connectivity services with an Azure firewall, an express route gateway, routing intent and vhub connections the deployment ends-up with an InternalServerError and deployment time and destroy time.

Steps to Reproduce

enable vwan enable vhub enable firewall (secure hub) enable routing intent peer existing vnets to the hub apply

Screenshots

image

Additional context

By adding a depends_on azurerm_express_route_gateway.virtual_wan to the azurerm_virtual_hub_connection and azurerm_virtual_hub_routing_intent I managed to fix the deploy and destroy issues described above. I am going to submit the PR.

matt-FFFFFF commented 4 days ago

Thank you @LaurentLesle