Failure sending request: StatusCode=0 — Original Error: Code=”ReferencedResourceNotProvisioned” Message=”Cannot proceed with operation because resource used by resource is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is PutSubnetOperation.” Details=[]

Fix/hack: Azure may has a rate limit on their api because when I set -parallelism=1 for example no errors occurred.

Example: terraform apply -parallelism=1