Introduction
From clicks to code: Terraform for Azure
()
What you should know
()
Exercise files on GitHub
()
1. Introduction to Terraform
What is Terraform?
()
Benefits of using Terraform
()
Terraform vs. other IaC tools
()
Installing the Terraform CLI
()
Configuring Azure credentials for Terraform
()
Overview of Terraform providers
()
2. Terraform Fundamentals
Writing your first Terraform configuration
()
Understanding Terraform's HCL syntax
()
Key Terraform commands: Init, plan, apply, and destroy
()
Declaring variables and using tfvar files
()
Best practices for managing configuration with variables
()
3. State Management and Workspaces
What are workspaces?
()
Using Terraform workspaces
()
Define and provision Azure VM with workspaces
()
Understanding Terraform state (local vs. remote)
()
Configuring remote state using Azure Blob Storage
()
Implementing state locking and versioning
()
4. Terraform Modules
Why use modules?
()
Defining variable for compute module
()
Defining compute infrastructure
()
Reference and deploy compute module
()
Defining Azure SQL database module
()
Defining an Azure Web App module
()
Deploying our modules
()
Destroying our provisioned resources
()
5. Terraform Deployments with Azure DevOps Pipelines
Introduction to CI/CD for Terraform
()
Configure and clone your DevOps project
()
Configure service principal and variable groups
()
Define CI workflow for Terraform
()
Define environments and dev CD workflow
()
Automating deployments in Azure: Staging and production
()
Approval gate for production workflow
()
Destroy resources with CI/CD
()
Conclusion
Put your Terraform skills to work
()