This code sample will build the above architecture. Detailed blog post here. Nehali Neogi Blog - Azure Virtual WAN using terraform - URL
git
terraform
git clone the repository and run the following commands
# setup
terraform init
terraform plan
terraform apply (run this command twice if you run into dependency issue)
# to cleanup
terraform destroy (run this command twice if you run into dependency issue)
[!NOTE]End Users need to follow the following steps:
- Make sure that the following certificates are in the correct location:
password to import the test certificate is : rootca
- mydomain.com.pfx Current User\Personal\Certificates
- rootCA.crt Local Computer\Trusted Root Certification Authorities
-
After the p2s client is connected: ipconfig (should get an ip from the P2S subnets 192.168.51.0/24 or 192.168.52.0.24)
ping 10.1.1.4
ping 10.2.1.4
ping 10.3.1.4
ping 10.4.1.4
Many thanks to Shaun Croucher for his contributions.