Hands-On Training: Build Azure Infrastructure with Terraform

Terraform for Beginners:: Automate and Manage Real Azure Environments Using Terraform

37 lessons 5h 12m intermediate4.7(7 reviews)
12.25

About This Course

This course, titled Hands-On Training: Build and Automate Azure Infrastructure with Terraform, is designed for individuals ranging from Beginner to Intermediate who want to master Infrastructure-as-Code (IaC) principles on the Microsoft Azure platform. It provides a logical and structured path to take a new learner from "I've never used Terraform" to being able to confidently deploy and secure real Azure infrastructure using best practices. The training begins with Section 1: Getting Started with Terraform on Azure, where you will receive a complete introduction to Terraform, covering core concepts of IaC, its architecture, and the full lifecycle workflow of init, plan, apply, and destroy. You will set up your development environment by installing Terraform and configuring Visual Studio Code, defining the Azure provider, and securely authenticating to Azure using a Service Principal. In Section 2: Building a Complete Azure Infrastructure with Terraform, the course transitions into a comprehensive, project-based deployment. Students will build a fully working, full-stack Azure environment from the ground up, provisioning foundational elements like resource groups, storage accounts, virtual networks, and subnets. You will then move on to deploy and configure more complex resources, including public IPs, network interfaces, Network Security Groups (NSGs) for traffic control, and virtual machines (for Kafka and Flask applications), before automating the creation of an Azure Databricks workspace. This section transforms static cloud setup into repeatable, automated Terraform workflows and includes essential troubleshooting skills. Section 3: Automating Azure Infrastructure with Terraform Loops elevates your skills by showing you how to optimize and scale the infrastructure built in the previous section. You will learn to replace repetitive configurations with elegant, reusable patterns by mastering Terraform's looping constructs, specifically for_each and dynamic blocks. This section focuses on refactoring resource creation—like multiple Network Security Groups, Public IPs, and Virtual Machines—from separate blocks into concise, data-driven code, teaching you how to maintain clean and scalable infrastructure definitions. Finally, Section 4: Terraform Best Practices—Variables, State & Security prepares you for professional, real-world DevOps environments. You will learn how to set up and use Azure Cloud Shell, properly organize your projects, and remove sensitive credentials by utilizing environment variables. A major focus is on the security and collaboration aspects of state management: understanding Terraform's state file and moving it to Azure Storage for secure, shared access and reliability. The section concludes by implementing production-level security, replacing hard-coded passwords with SSH key-based authentication for your Azure Virtual Machines. The course emphasizes Hands-On Practice and uses industry-relevant tools, ensuring students are prepared for entry-level DevOps or Cloud Engineer roles focused on Azure and Terraform.

Course Curriculum

4 sections · 37 lessons · 5h 12m total

1.0 Course Overview & Learning OutcomesFree4:00
1.1 What Is Terraform and Why Use It?6:00
1.2 Install and Set Up Terraform with Visual Studio CodeFree9:00
1.3 Define the Azure Provider in Terraform3:12
1.4 Authenticate Terraform to Azure with a Service Principal12:05
1.5 Create Your First Azure Resource Group with Terraform11:17
Chapter 1 QuizQuiz
2.1 Terraform Project Roadmap: Building a Real-Time Data Architecture on AzureFree3:01
2.2 Creating Resource Groups with Terraform on Azure7:11
2.3 Simplifying Terraform Code with Local Variables11:07
2.4 Creating Azure Storage Account and Blob Container with TerraformFree14:09
2.5 Creating Azure Virtual Network and Subnet with Terraform-Part114:09
2.5 Creating Azure Virtual Network and Subnet with Terraform-Part27:23
2.6 Creating Public IP Addresses and Network Interfaces with Terraform-Part19:53
2.6 Creating Public IP Addresses and Network Interfaces with Terraform-Part29:18
2.6 Creating Public IP Addresses and Network Interfaces with Terraform-Part35:47
2.7 Creating NSG & Associate NSG with NI-Part111:39
2.7 Creating NSG & Associate NSG with NI-Part25:48
2.8 Creating Virtual Machines with Terraform – Part19:36
2.8 Creating Virtual Machines with Terraform-Part25:35
2.9 Testing VM Connectivity5:50
2.10 Creating an Azure Databricks Workspace with Terraform10:36
2.11 Using Destroy Command7:28
Chapter 2 QuizQuiz
3.1 Automate Repeated Code with Dynamic Blocks in Terraform-Part113:57
3.1 Automate Repeated Code with Dynamic Blocks in Terraform-Part2
3.2 Using For_each to Simplify NSGs and Associations9:41
3.3 Using for_each to Simplify Public IP Creation in Terraform10:35
3.4 Using for_each to Simplify Network Interfaces and Associations12:44
3.5 Looping Virtual Machines with for_each in Terraform12:17
Chapter 3 QuizQuiz
4.1 Azure Cloud Shell Setup & Persistent Storage-Part11:27
4.1 Azure Cloud Shell Setup & Persistent Storage-Part211:02
4.2 Split Variables from main.tf-Part18:19
4.2 Split Variables from main.tf-Part27:50
4.3 Move Terraform State to Azure Storage-Part18:14
4.3 Move Terraform State to Azure Storage-Part27:46
4.3 Move Terraform State to Azure Storage-Part36:46
4.4 Switch from Passwords to SSH Keys-Part19:37
4.4 Switch from Passwords to SSH Keys-Part27:58

Student Reviews7 reviews

4.7

Emma Bergström

11 Jun 2026

Exactly what I needed. Clear examples, real environments, and a top instructor. My go-to recommendation for anyone starting with Terraform on Azure.

Omar Farooq

1 Jun 2026

Outstanding content. I was able to automate our team's Azure infrastructure within a week of finishing. Worth every cent.

Lena Müller

22 May 2026

Solid course. Good examples and the pace is right. The section on resource dependencies was especially helpful.

James Carter

7 May 2026

Mohammed is a great instructor. Clear, concise, and practical. I got my first Terraform-related task at work done within a week of starting this course.

Priya Nair

22 Apr 2026

Great course for someone coming from AWS. The Azure-specific explanations saved me a lot of time. Would love a module on Terraform state backends.

Alex Hoffmann

7 Apr 2026

Very hands-on as the name says. No wasted time on theory slides — you are in the terminal immediately. Highly recommend.

Sarah Mitchell

28 Mar 2026

Best Terraform course I have found. Mohammed explains complex concepts in a way that actually makes sense. I deployed real Azure infrastructure on day 3.

Hands-On Training: Build Azure Infrastructure with Terraform
12.25
  • 37 lessons
  • 5h 12m of content
  • intermediate level
  • Lifetime access

Sales Assistant

Course advisor · HandsOnDataEng

👋 Hi! How can I help you today?

I can help you find the right course.

✨ Powered by Gemini AI · HandsOnDataEng