r/Terraform • u/AdeelAutomates Cloud Engineer | Youtube @adeelautomates • Jul 20 '26
Discussion Learn Infrastructure as Code in Azure with Terraform - Part 2
The follow-up to my Beginner episode I posted here is finally out.
Part 2 of this planned Azure Terraform series shifts away from simply deploying resources and focuses more on programmatically approaching Terraform.
Topics covered include:
- Functions
- Conditionals
- Operators
- Loops
- Dynamic Blocks
- For Expressions & Splat
- Validations (including Check Blocks and Pre/Post Conditions)
- Nested Types (including complex variable types)
- Provider Aliases (deploy across multiple Azure subscriptions)
- KISS vs DRY
- And much more...
Rather than jumping between unrelated examples, everything is built around a single Azure project so each concept is introduced naturally as the deployment grows in complexity.
We definitely over-engineer this project just to teach these programming concepts, but understanding them will help you write much more flexible & dynamic Infrastructure as Code.
With that, our roadmap continues!
- Beginner Episode : Understand Terraform (learn the foundations and core concepts that make Terraform work)
- Intermediate Episode : Program Terraform (use loops, functions, conditionals, dynamic blocks, etc)
- Advanced Episode : Structure Terraform (introduce modules, remote state in azure storage, workspaces, imports, etc)
- Project Episode(s): Build Azure Projects (Less about Terraform itself & more about building interesting architectures in Azure)
- Professional Episode : Operationalize Terraform (use GitHub, CI/CD, pull requests, state management, and deployment workflows to work in a team environment)
Link to Episode: https://www.youtube.com/watch?v=QwXqLAvmKac
1
u/r1ckm4n Jul 20 '26
I fucking hated doing TF with Azure.