Example to demonstrate reported issue with subnets not being created correctly.
- Clone this repo
- Run
terraform init
- Run
terraform apply -var-file="local.tfvars"
- Validate the number of subnets created for all 3 VNETs should equal 100:
(az network vnet subnet list --vnet-name vnet-dev-westeurope-001 -g rg-subnet-test | ConvertFrom-JSON).Count
(az network vnet subnet list --vnet-name vnet-dev-southeastasia-001 -g rg-subnet-test | ConvertFrom-JSON).Count
(az network vnet subnet list --vnet-name vnet-dev-eastus2-001 -g rg-subnet-test | ConvertFrom-JSON).Count
If the number of subnets is less than 100...
- Clean-up with
terraform destroy -var-file="local.tfvars"
- Run
terraform apply -var-file="local.tfvars" -parallelism=2
- Validate the number of subnets as described above