How theangrytech-git/chaosstudiolab works
Project type and purpose
• This is an Infrastructure-as-Code (IaC) deployment project for Azure Chaos Studio experiments.
• It uses Terraform to define and provision resources in “UK South” (with optional “UK West” failover), plus scripts and pipelines to run chaos experiments and health checks.
File structure
• Top-level IaC files: provider.tf, main.tf, variables.tf, output.tf, env.tfvars, terraform.lock.hcl
• CI/CD definitions:
• .github/workflows/main.yml
• .github/workflows/msdevsecops.yml
• azure-pipelines.yml
• Auxiliary scripts and assets:
• healthcheck.py + healthcheckpage.html
• assets/HLD.png
• Miscellaneous: secret password file (should be removed or secured)
Extract key insights from the README
• Purpose: Deploy a small lab, create three real-world Playbook-in-Run (PIR) experiments and smaller failure scenarios.
• Audience: Engineers learning Chaos Studio and Azure Well-Architected pillars.
• There is already a high-level design graphic in assets/HLD.png – use it as a starting point.
Main components
• Source Code Management (GitHub repo)
• CI/CD systems (GitHub Actions, Azure Pipelines)
• Terraform engine (local or remote backend)
• Azure Resource Manager (ARM) / Subscription boundary
• Deployed Azure services:
• Virtual Machines or VM Scale Sets
• Resource Groups
• Azure Chaos Studio (experiments, targets)
• Networking components (VNet, subnets)
• Monitoring/health-check stack:
• healthcheck.py + healthcheckpage.html hosted somewhere (VM or Web App)
• Optional failover region (UK West)
Relationships and interactions
• Developers push code → triggers GitHub Actions or Azure Pipelines
• CI/CD system executes Terraform plan/apply using provider.tf and env.tfvars
• Terraform communicates with ARM to provision resource groups, VMs, Chaos Studio experiments
• After deployment, healthcheck.py runs against deployed resources and serves healthcheckpage.html
• Users can invoke Chaos Studio experiments against the deployed targets
Architectural patterns and design principles
• Declarative IaC (Terraform)
• GitOps-style pipeline (code-driven deployments)
• Separation of concerns:
• Pipeline code vs. infrastructure code vs. runtime artifacts (scripts)
• Resiliency through multi-region (UK South primary, UK West failover)
• Well-Architected Framework pillars: Reliability (chaos experiments), Operational Excellence (automated pipelines), Performance Efficiency (region failover), etc.
Technology and framework highlights
• Terraform (HCL files, .terraform lock)
• GitHub Actions (.github/workflows)
• Azure DevOps Pipelines (azure-pipelines.yml)
• Python (healthcheck.py)
• Azure Chaos Studio
• Azure CLI / ARM under the hood
Final recommendations
• Reference the existing HLD.png in assets as a styling guide.
• Iterate with your team to ensure no resource type or script is omitted.