CloudNationHQ / terraform-azure-vnet

Terraform module which creates virtual network resources used by workloads and accelerators.
https://library.tf/modules/CloudNationHQ/vnet/azure/latest
MIT License
1 stars 1 forks source link

Subnet association not working on first run #24

Closed cndaan closed 5 months ago

cndaan commented 5 months ago

On the first run of this module the associations to the NSG and the Route table always fail. Second run after this it works fine.

Associations probably need a depends_on for the subnet to be created first.

See error below:

image

dkooll commented 5 months ago

Verified the dependency order. It was correct. Seems terraform says subnets are created... but in the azure backbone there is a little bit delay. This is not consistent and the same for every region.

Experimenting and testing by adding a little bit extra time before attaching the network security groups to the subnet.