Getting Started with Terraform and Microsoft Azure

Guillermo Musumeci
13 min readFeb 12, 2020

In this post, we will explore the basics (and a few tips of many years of experience) to configure your development environment to start writing Terraform code for Microsoft Azure.

1. Installing Terraform

Installing Terraform is very simple. We just need to download the file from https://www.terraform.io/downloads.html and extract the executable to a folder. Then, we add the folder to the PATH variable in our operating system.

Terraform is available for Windows, macOS, Linux, FreeBSD, OpenBSD, and Solaris.

To verify Terraform is working, we type terraform in the command prompt.

2. Preparing to write Terraform code

The most popular editor to write Terraform code is Visual Studio Code. It is a free & open-source editor available for Windows, macOS, and multiple versions of Linux. Download it at https://code.visualstudio.com

Then, install the Terraform extension By Mikael Olenfalk and the Azure Terraform extension by Microsoft.

--

--

Guillermo Musumeci

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | ex-AWS | Entrepreneur | Book Author | Husband & Dad of ✌