Have a fairly basic environment I’m testing with. It’s a VNet, some subnets, route tables, NSGs. Deploys fine but when running destroy, I get this error for the route-table and the NSGs (truncated to remove sensitive and unneeded info):
Error: Error deleting Network Security Group : Failure sending request: StatusCode=400 – Original Error: Code=“InUseNetworkSecurityGroupCannotBeDeleted”
Similar error for the route table, Code is just “InUseRouteTableCannotBeDeleted”
Azure is throwing the error because there is a dependency there of course… could TF be going too fast and Azure isn’t able to delete the resources in time?