Azure & Linux Homelab
Connecting local Ubuntu VMs to Azure and making VM setup repeatable.
Situation
My hybrid lab spanned local Ubuntu VMs and Azure. Manual VM setup took about two hours.
Task
I needed private connectivity, repeatable provisioning, and metrics I could use for troubleshooting.
Action
I connected the on-premises Ubuntu network to Azure through Azure VPN Gateway. I used the tunnel as the path between the two environments and documented how to verify that the gateway is connected and that an expected Azure service is reachable over its private address.
I moved repeated provisioning steps into Bash scripts that call Azure CLI. I used the scripts for the routine setup work so I could rerun the same sequence when bringing another VM online.
I set up Prometheus to collect metrics and used Grafana to inspect them. I also packaged a separate Docker Compose example with a preconfigured Prometheus data source. I configured Prometheus to scrape itself and documented how to query its up metric from Grafana. I bound both services to localhost so I could share the example without exposing the lab.
What I would improve
I would capture provisioning times across multiple runs, document recovery from a dropped tunnel, and add a VM exporter and an alert to the local monitoring demo.
Result
VM provisioning fell from about two hours to under ten minutes. The lab had an encrypted Azure connection and a separate two-service monitoring demo.