Closed kewalaka closed 1 month ago
[!IMPORTANT] The "Needs: Triage :mag:" label must be removed once the triage process is complete!
[!NOTE] This label was added as per ITA06.
[!NOTE] The "Type: Bug :bug:" label was added as per ITA21.
ignore me - i had a duplicate resource ID in the mix that was causing the conflict. not a bug.
Check for previous/existing GitHub issues
Issue Type?
Bug
(Optional) Module Version
0.2.3
(Optional) Correlation Id
No response
Description
I believe there is a timing issue that requires the locks to be modified on the subnet, I see this when attempting to bind the same route table or NSG to multiple subnets. The error is "CanceledAndSupersededDueToAnotherOperation", here it is from a run:
See https://github.com/kewalaka/terraform-azurerm-avm-ptn-subnets-nsgs-routes/actions/runs/9333390678/job/25690443103?pr=7
I think the issue might be the lock on the subnet:
https://github.com/Azure/terraform-azurerm-avm-res-network-virtualnetwork/blob/ff05688545e8a69a71eae7cd4cd853900a85e976/modules/subnet/main.tf#L38
I am wondering if we also need locks around the route table ID and NSG ID?