Outline updated November 2026

Foundation21 hours delivered over 3-5 daysLive, online or on-site

Request this course

Manage and Automate Azure Infrastructure with Terraform

Class Duration

21 hours of live training delivered over 3-5 days to accommodate your scheduling needs

Student Prerequisites

  • Familiarity with Azure cloud resources and services.
  • Command-line terminal and basic scripting experience.
  • Comfortable using an editor such as VS Code or Vim.

Target Audience

Cloud engineers, DevOps engineers, SREs, platform engineers, and architects who provision Azure infrastructure. It fits teams working on new and existing Azure estates. New to Azure? Start with Microsoft Azure Fundamentals. For deeper platform context, pair it with Designing Azure Infrastructure Essentials.

Description

This live course teaches engineering teams to build and manage Azure infrastructure with Terraform. Students move from the Terraform CLI and HCL to the AzureRM provider, state management, and reusable modules. The course covers upgrading to the current AzureRM provider, plus security, testing, CI/CD, and governance. Everything taught works with both Terraform and OpenTofu, the CNCF fork created after HashiCorp changed Terraform's license. Teams with CDK for Terraform projects learn to convert them to HCL now that CDKTF is deprecated.

Learning Outcomes

  • Explain IaC principles and when to choose Terraform over ARM or Bicep.
  • Run the Terraform workflow with init, plan, apply, and destroy.
  • Write HCL with variables, locals, validations, and functions.
  • Build Azure networks, compute, storage, and databases with the AzureRM provider.
  • Authenticate the AzureRM provider with managed identity or OIDC.
  • Upgrade existing configurations to the current AzureRM provider.
  • Design, publish, and version reusable modules.
  • Use Azure Verified Modules where they fit.
  • Manage remote state, handle drift, and import existing resources.
  • Keep secrets out of state with ephemeral resources and write-only arguments.
  • Test configurations with terraform test and policy as code.
  • Run Terraform from GitHub Actions and Azure Pipelines.
  • Compare Terraform and OpenTofu and migrate between them.

Training Materials

All students receive comprehensive courseware covering all topics in the course. Students will access the courseware through GitHub. The courseware is a collection of documents and extensive code samples. Students practice the topics covered through challenging hands-on lab exercises.

Software Requirements

Students will need a free, personal GitHub account to access the courseware. Students will need a computer with a modern web browser, Visual Studio Code, Azure CLI, and Terraform installed. The course is taught with Terraform 1.17 and the AzureRM provider 5.x; OpenTofu 1.13 can be used in place of Terraform.

Training Topics

Introduction to Infrastructure as Code (IaC)

  • IaC principles and benefits
  • IaC vs. traditional scripting
  • Terraform's role in Azure automation
  • Terraform and OpenTofu license history
  • Choosing a CLI

Getting Started with Terraform

  • The plan, apply, and destroy workflow
  • Project structure and HCL files
  • Providers and resource configuration
  • Using Terraform documentation
  • Managing Azure resources

Building Infrastructure on Azure

  • Terraform architecture and state
  • Local and remote backends
  • AzureRM authentication with the Azure CLI
  • Managed identity and OIDC authentication
  • Resource provider registration
  • Preflight validation
  • Resource groups, networks, and compute
  • Storage, databases, and identity
  • Terraform vs. ARM templates and Bicep

Upgrading the AzureRM Provider

  • Removed legacy resources and replacements
  • App Service and Function App resources
  • PostgreSQL Single Server resources
  • Renamed properties and resource ID references
  • Settings moved into dedicated resources
  • Planning and testing a provider upgrade

HCL Programming and Configuration Skills

  • HCL syntax, variables, locals, and outputs
  • Input variable types and validation
  • Expressions and operators
  • Functions for dynamic infrastructure
  • .tfvars files and environment variables

Resources and Modules in Depth

  • Resource blocks and dependencies
  • Meta-arguments
  • Data sources
  • Designing custom modules
  • Azure Verified Modules for Terraform
  • Publishing and maintaining modules
  • Module best practices

State Management and Importing Resources

  • State backends, including Azure Storage
  • Drift and out-of-band changes
  • import blocks and generated configuration
  • Refactoring with moved and removed blocks
  • Third-party state tools

Best Practices and Troubleshooting

  • Debugging with logs and audit trails
  • Common state and configuration issues
  • Version control and modular design
  • Secrets, least privilege, and RBAC
  • Ephemeral resources and write-only arguments
  • Performance and parallelism

Testing and Validation

  • terraform validate
  • Preconditions and postconditions
  • The terraform test framework
  • Mock providers
  • Static analysis and security scanning
  • Policy as code with Sentinel and OPA

Advanced Concepts and Enterprise Integration

  • Terraform in hybrid and enterprise environments
  • HCP Terraform and its Free tier
  • Terraform Enterprise
  • DevOps and GitOps with Terraform
  • GitHub Actions and Azure Pipelines integration
  • Governance and compliance

OpenTofu and CDKTF

  • OpenTofu state encryption
  • Early variable evaluation
  • Provider for_each
  • Migrating between Terraform and OpenTofu
  • Converting deprecated CDKTF projects to HCL

Integrating Terraform with Azure and the HashiCorp Ecosystem

  • Azure Key Vault and Azure Monitor
  • Secrets with HashiCorp Vault
  • Image builds with Packer
  • Provisioners vs. configuration management tools
  • Full automation workflows

Private team training

Bring this course to your team

Tell us about your team and we will tailor this outline to your tools, stack, and schedule. Courses can also be combined into a longer program.

  1. Tell us what you needYour tools, stack, team size, and timeline.
  2. We send a proposalA course or program, an outline adjusted to your team, and possible dates.
  3. Your team trains liveOnline or on-site, with courseware for every student.

Prefer to talk? Call +1 434-509-6890 or email help@cloudcontraptions.com.

We reply within 1 business day.

Training partner?