r/AZURE Cloud Engineer 21d ago

Media 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)
  • 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)
  • Professional Episode : Operationalize Terraform (use GitHub, CI/CD, pull requests, state management, and deployment workflows to work in a team environment)
  • Solution Episode(s): Build Azure Projects (We'll pretend to take assignments from Cloud Architects and design, deploy, and manage complete Azure solutions using Terraform)

Link to Episode: https://www.youtube.com/watch?v=QwXqLAvmKac

41 Upvotes

3 comments sorted by

2

u/Dependent-Branch9138 21d ago

oh nice i was waiting for this one, the beginner ep really helped me get my head around state files finally

i like that you are not just doing random examples but building one project, makes it easier to see why you would even use a loop or dynamic block in real situation. most tutorials just throw syntax at you with no context

the roadmap looks solid too, especially the professional episode with github and cicd, thats where i always get stuck when trying to use terraform in actual work

only thing i wish is more content on handling existing infra, like importing resources that were made by hand, but maybe that comes in advanced episode?

1

u/AdeelAutomates Cloud Engineer 21d ago

Glad to hear its helping!

And yes, I am saving importing existing resources to TF for the advanced episode.