Cloud & infrastructure · Personal project
ExperimentalAzure Infrastructure Lab
From a manual build to repeatable infrastructure.
The context
Project overview
A personal infrastructure lab for understanding the path from an Azure network to a web application. The work brings together virtual networks, network security groups, Linux virtual machines, Nginx and Terraform. The related public repository documents the secure web-server foundation.
The problem
Deploying a virtual machine is straightforward. Understanding its network exposure, administrative access and configuration lifecycle takes more care. This lab provides a practical environment for working through those decisions.
How it comes together
Technical approach
Build the foundation manually to understand each resource, then express the secure web-server configuration in Terraform. The wider lab explores DNS, HTTPS and TLS certificates. The diagram documents the lab configuration; the linked repository covers the Terraform web-server foundation and currently documents HTTP serving.
Implementation & scope
Implemented
- Virtual network: 10.0.0.0/16
- Public subnet: 10.0.1.0/24
- Private subnet: 10.0.2.0/24
- Network Security Groups and Linux virtual machines
- Terraform infrastructure configuration
- Nginx web application hosting
- DNS, HTTPS and TLS certificate configuration in the lab
Planned · not implemented
- Azure Bastion
- Application Gateway and Web Application Firewall
- Azure Key Vault
- Azure Monitor and Log Analytics
- Private endpoints
Engineering decisions
Understand it before automating it
The secure-server project began in the Azure Portal. Translating it into Terraform makes resource relationships explicit and gives configuration a reviewable history.
Separate web and administrative access
The secure-server repository uses default-deny inbound rules and restricts SSH to a configured administrator address. Cloud-init disables password authentication and installs Fail2Ban.
Leave room without adding complexity
The lab includes a private subnet. Its presence does not imply private application workloads, private endpoints or a deployed database.
Challenges & lessons
Network rules have operational consequences
Public web traffic and administration need different access policies. The configuration keeps the administrator address in an input variable rather than hard-coding it.
Keep configuration separate from secrets
The public Terraform repository excludes real variable values and state files. Only example inputs belong in source control.
What I’m taking forward
Working through the network, operating system and web-server layers makes the full request path easier to reason about. Terraform is most useful when the configuration reflects decisions that are already understood.
Where it stands
A personal learning environment, not a production service or a promise of an always-on demo. Bastion, Application Gateway, WAF, Key Vault, monitoring and private endpoints remain planned.
Case study last reviewed 26 November 2026
Explore the source
