AZ-104 Lab — Terraform¶
This directory contains Terraform-based custom labs and an onboarding verification skeleton. Each subdirectory is an independent Terraform root module; run terraform init only in the module you intend to use.
Structure¶
| Directory | Purpose | Intended user |
|---|---|---|
lab00-skeleton/ |
Verify connection to assigned Resource Group (data only) | Students (onboarding) |
lab04-virtual-networking/ |
Lab 04: VNet, Subnet, NSG, ASG, Private DNS, Peering, Bastion, Ubuntu VM | Students (Day 1 afternoon) |
lab07-manage-storage/ |
Lab 07: Storage Account, Blob, Azure Files, Service Endpoint | Students (Day 1) |
lab08-manage-vms/ |
Lab 08: Linux VM, Data Disk, Custom Script Extension, Public IP | Students (Day 2) |
lab09a-paas-webapp/ |
Lab 09a: Web App for Containers (ACR image deploy) | Students (Day 2) |
lab90-aks/ |
Lab 90: AKS Cluster (system + user pool), ACR attach, kubectl | Students (Day 2) |
99-instructor-bootstrap/ |
Instructor-only: bulk-create per-student Resource Groups, shared ACR | Instructor (requires subscription permissions) |
Note:
99-instructor-bootstrap/requires subscription-level permissions and should not be exposed in the student-facing MkDocs site or included in public mirrors (e.g.,az-104-labs).Tip: For public offerings you can maintain a public
az-104-labsrepository that contains the documentation and a trimmedlabs/terraform/tree for students to clone. Seedocs/AZ-104-LABS-PUBLIC-REPO.mdfor sync/exclude guidance.
Usage (students)¶
lab00-skeleton/— Runterraform init,plan,applyto verify your assigned RG connection.lab04-virtual-networking/— Deploy the Lab 04 scenario (VNet, Peering, Bastion, VMs).lab07-manage-storage/— Deploy Storage Account with Blob, Azure Files, and service endpoint.lab08-manage-vms/— Deploy a Linux VM with data disk and Custom Script Extension.lab09a-paas-webapp/— Deploy Web App for Containers with ACR image.lab90-aks/— Deploy AKS cluster with ACR attachment. Requires shared ACR name from instructor.
Each module contains a README.md describing prerequisites, apply/verify/destroy steps.
Warning (state files): Each submodule uses an independent Terraform state (terraform.tfstate). Do not reuse state across folders — initialize and operate in the module directory you intend to manage.