Blog Reference - https://www.azure365pro.com/azure-hub-and-spoke-network-using-reusable-terraform-modules/
Deployment for Infrastructure with Hub and Spoke model. Its compliant with Cloud Adoption Framework.
We will be deploying the below resources using Terraform reusable modules.
- ✅ Virtual Networks (Hub - 10.50.0.0/16 - Spoke - 10.51.0.0/16)
- ✅ VPN Gateway (10.50.1.0/24) - Not Provisioned by Default
- ✅ Azure Firewall (10.50.2.0/24)
- ✅ Application Gateway (10.50.3.0/24) - Not Provisioned by Default
- ✅ Azure Bastion (10.50.4.0/24)
- ✅ Jump Box (Windows 11) (10.50.5.0/24)
- ✅ Windows Server 2019 Web Server (10.51.1.0/24)
- ✅ Linux RHEL Server (10.51.2.0/24)
- ✅ Public IP Addresses
- ✅ Recovery Services Vault
- ✅ Azure Key Vault - Not Provisioned by Default
- ✅ Route Tables
- ✅ Azure Firewall Policies
Modules are convenient to place into folders and reuse resource configurations with Terraform for multiple deployments. Also, changing / upgrading specific resource configurations becomes easier
Terraform latest version is installed Az cli is installed / az login is completed (az login) git is installed to clone repo (git clone)
terraform init
terraform plan
terraform apply