From Terraform to a running web server
How this server was built
Terraform created the Azure network, inbound security rules, public IP, DNS name, and Ubuntu VM. Azure installed the administrator's public SSH key during provisioning. The private key stayed on the administrator's machine.
On first boot, cloud-init ran a Bash script that updated Ubuntu, moved SSH to port 2222, required a hybrid post-quantum key exchange, and enabled UFW and Fail2ban. Caddy serves this page over HTTPS. A Cloudflare Quick Tunnel provides a temporary preview using Caddy's loopback listener.
How it would work without Terraform
Using the Azure portal or CLI, you would create the resource group, network, subnet, public IP with DNS, security rules, and virtual machine. You would supply the public key and pass the same Bash script as cloud-init data. Then you would check SSH, HTTPS, and the preview URL.
With Terraform, the configuration records those resources and their dependencies. Before changing the deployment, a plan shows what Azure resources Terraform intends to add, modify, or replace.