Azure

Hands-on guides and explanations on Microsoft Azure, cloud infrastructure, networking, and security.

gemini generated image gcjy0ngcjy0ngcjy

Provisioning an Azure Resource Group and Virtual Network with Terraform

Objective: This lab documents the process of provisioning an Azure Resource Group and Virtual Network (with a subnet) using Terraform. It starts with a hardcoded configuration and progressively refactors it: extracting values into variables, loading defaults from a terraform.tfvars file, and using the hashicorp/random provider with string interpolation to generate a unique naming suffix for […]

Provisioning an Azure Resource Group and Virtual Network with Terraform Read More »

gemini generated image 9f2w039f2w039f2w

The Automated Database Credential Generator

Automating Secure Database Credentials with Terraform Every new environment (dev, staging, prod) needs its own database credentials. Making them up by hand doesn’t scale and it’s slow, inconsistent, and one weak password away from a problem. So I built a Terraform project that generates them automatically. What it does: Generates a random 4-character ID to

The Automated Database Credential Generator Read More »

gemini generated image 9xduxa9xduxa9xdu (1)

Terraform’s Workflow: Creating a Random Pet Resource

To demonstrate Terraform’s workflow in a simple, fun way, I’ll be creating a random pet resource. Here’s the first main.tf: So, Terraform would generate something like:  African-happy-lion-tiger. This configuration is hardcoded making it less flexible and harder to reuse across different environments. Terraform init: Initializes the working directory. It downloads the providers your config depends

Terraform’s Workflow: Creating a Random Pet Resource Read More »