hands-on lab

Exploring Terraform State in Azure

Difficulty: Beginner
Duration: Up to 40 minutes
Students: 938
Rating: 4.8/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Terraform uses a system called Terraform State to keep track of resources managed and deployed through Terraform. This is a critical concept to understand as a Terraform infrastructure developer because Terraform state will always need to be kept in mind when architecting solutions. The state file acts as a database for mapping resources in Azure to the Terraform configuration file. It allows Terraform to have a declarative approach when it comes to infrastructure and provides performance boosts with large scale infrastructure automation. 

In this lab, you will learn how Terraform keeps track of the resources that it manages through Terraform state.

Learning Objectives

Upon completion of this lab you will be able to:

  • Understand how Terraform state works
  • Learn the security risks of the state file

Intended Audience

This lab is intended for:

  • Individuals studying to take the HashiCorp Certified: Terraform Associate exam
  • Anyone interested in learning how to use Terraform to manage Cloud Service Providers

Lab Prerequisites

You should be familiar with:

  • Cloud Services
  • DevOps

The following course can be used to fulfill the prerequisites:

Updates

February 13th, 2023 - Updated the instructions and screenshots to reflect the latest UI

Environment before

Environment after

Covered topics

Lab steps

Exploring Terraform State in Azure