Infrastructure as code with Azure DevOps - Part 1: Getting started

Featured image

It seems like on every blog or forum I read someone is talking about how the discipline of DevOps can “increase agility” and deliver value with an “increased velocity”.

What I don’t see a lot of, is someone explaining how to configure and use the tooling that makes that possible - especially in the context of deploying infrastructure to Azure via ARM. Hopefully I can help fill that gap.

In this blog series i’ll explain how go from zero to hero, deploying infrastructure-as-code into Azure through a simple CI/CD pipeline using Azure DevOps.

What is Azure DevOps

Azure DevOps (formerly known as Visual Studio Team Services (VSTS)) is a free* and extensible software platform that provides all the features a developer needs to develop, test, and release software.

Azure DevOps is split up into 5 main areas:

  1. Azure Boards (work tracking)
  2. Azure Pipelines (CI/CD)
  3. Azure Repos (source control)
  4. Azure Test Plans (application test management)
  5. Azure Artifacts (package management)

To keep things simple, i’m going to be focusing on the meat and potatoes of what Azure DevOps offers, which is Azure Repos and Azure Pipelines.

These two features allows us to store and manage ARM templates in source control, and deploy them into Azure automatically every time the code in the arm template changes using a CI/CD pipeline.

Getting started

Getting started is super easy and can be done in less than five minutes.

Create an Azure DevOps account

Head to and click Start free to create a new account.


Once you sign in with your Microsoft account, clicking continue will provision a new Azure DevOps instance your Azure tenancy.


Create a new project

When the Azure DevOps instance has been created, you’ll immediately be prompted to create a new project.

Think of a “project” as a bucket that will contain all of your source code and build pipelines related to a particular application or system. In the event that you want to manage which users can access the source code and CI/CD pipelines, projects can also be used as a permission boundary.

It is a good rule of thumb to create a new project for each application or system you want to enable for CI/CD.

Give the project a name and choose whether you want the project to be public or private. In most cases, you’d want to keep your junk private.


I highly recommend you pick up a copy of The Phoenix Project

That it! Told you it was simple!

Continue to Part 2 - Source Control where I’ll show you how to setup a new Git repo and make your first code commit.