azure-security-lab-terraform — Claude Code skill: install and use
azure-security-lab-terraform guides an agent through deploying a Terraform lab in Azure: hub-spoke VNets, Azure Firewall Basic, NSGs and Key Vault. Useful when you want real network controls to practise on without wiring them by hand.
no license 134 installs ★ 13 updated 2026-10-09
npx skills add reason-machines/security-skills --skill azure-security-lab-terraform -a claude-codeWhat azure-security-lab-terraform does
The skill takes an agent through standing up the Azure Security Lab with Terraform: a hub VNet at 10.20.0.0/16 holding Azure Firewall Basic, a test spoke at 10.23.0.0/16 with an untrusted client, and a protected spoke at 10.22.0.0/16 running an IIS VM without a public address. NSGs guard each subnet, route tables push traffic into the firewall. Key Vault, Log Analytics and Azure Policy are variable toggles; deploy_bastion trades public RDP for private access.
Triggers cover the messy part too, like a failed apply or checking that firewall rules and logging behave. Settings live in terraform.tfvars or a file under environments/; then it is terraform plan -var-file="terraform.tfvars" and terraform apply. Outputs hand you connection details, such as terraform output test_client or the password from terraform output -raw windows_admin_password.
You need Terraform 1.9.0 or newer, the Azure CLI, and a subscription where you hold Contributor. admin_source_ip_cidr must carry your own address as a /32; without it RDP to the test client is not opened. Azure Firewall Basic runs at roughly 0.40 USD per hour, so tear the lab down with terraform destroy -var-file="terraform.tfvars" when the session ends. deploy_firewall = false drops the inspection step.
What it helps with
- stand up a hub-spoke network with a firewall between spokes
- check how NSGs and route tables block traffic between subnets
- spin up a Windows client with RDP limited to one IP
- deploy Key Vault, Log Analytics and Azure Policy in a single apply
- debug a failed Terraform apply in the lab
Example prompts for the agent
- Deploy the Azure security lab from
terraform.tfvarswith Azure Firewall Basic and both spokes. - Why did
terraform applyfail on the firewall module? Walk through the deployment and fix it. - Tear down the lab:
terraform destroy -var-file="terraform.tfvars".
How to install azure-security-lab-terraform
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill azure-security-lab-terraform -a claude-code2Manually: put the files in place
~/.claude/skills/azure-security-lab-terraform/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/azure-security-lab-terraform/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill azure-security-lab-terraform -a codex2Manually: put the files in place
.agents/skills/azure-security-lab-terraform/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill azure-security-lab-terraform -a cursor2Manually: put the files in place
.cursor/skills/azure-security-lab-terraform/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/security-skills skills/azure-security-lab-terraform2Manually: put the files in place
.github/skills/azure-security-lab-terraform/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill azure-security-lab-terraform -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/security-skills --path skills/azure-security-lab-terraformManually: put the files in place
.devin/skills/azure-security-lab-terraform/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill azure-security-lab-terraform -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about azure-security-lab-terraform
How do I install azure-security-lab-terraform in Claude Code?
Run npx skills add reason-machines/security-skills --skill azure-security-lab-terraform -a claude-code. The skill lands at ~/.claude/skills/azure-security-lab-terraform/SKILL.md.
What does this skill do?
It walks an agent through deploying and troubleshooting the Azure Security Lab: a Terraform hub-spoke setup with Azure Firewall Basic, NSGs, Key Vault and diagnostic logging.
What does the lab cost to run?
Azure Firewall Basic is the main line item at roughly 0.40 USD per hour, so the lab suits short sessions and gets destroyed afterwards.