Photo by Adora Goodenough on Unsplash

Member-only story

Deploying Terraform Infrastructure using Azure DevOps Pipelines Step by Step

Guillermo Musumeci
13 min readFeb 13, 2020

Azure DevOps is a hosted service to deploy CI/CD pipelines and today we are going to create a pipeline to deploy a Terraform configuration using an Azure DevOps pipeline.

In this story, we will take a look at a step by step procedure to have our Azure DevOps Pipelines ready in few minutes.

Check the Advanced version of this story, with more detail, including how to use Git to update Azure DevOps Repos.

If you are interested to deploy GCP Infrastructure with Terraform using Azure DevOps read Deploying GCP Infrastructure using Terraform and Azure DevOps Pipelines Step by Step

Note May 2020: the Terraform code was updated to AzureRM v2.x

1. Prerequisites

This is the list of prerequisites required to create a DevOps pipeline:

  • Azure Subscription: If we don’t have an Azure subscription, we can create a free account at https://azure.microsoft.com before we start.
  • Azure Service Principal: is an identity used to authenticate to Azure. Below are the instructions to create one.
  • Azure Remote Backend for Terraform: we will store our Terraform state file in a remote backend location. We will need a Resource Group…

--

--

Guillermo Musumeci
Guillermo Musumeci

Written by Guillermo Musumeci

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

Responses (9)