Member-only story

How to Create a DevTest Labs VM with Azure DevOps Pipelines

Luca Berton
7 min readOct 6, 2024

Azure DevTest Labs provides an efficient way to manage virtual machines (VMs) for development, testing, and even production environments. By automating the creation of golden image VMs in DevTest Labs, you ensure a consistent, repeatable deployment process that can be used as the base for future VMs.

This guide walks through creating a VM in DevTest Labs using the Azure DevTest Labs Create VM task in an Azure DevOps pipeline. We will cover setting up the release pipeline, configuring the task to create the VM, and setting the output variables for subsequent pipeline tasks.

Step-by-Step Guide to Creating a DevTest Labs VM in Azure DevOps

1. Create a New Release Pipeline

  1. Navigate to your Azure DevOps project.
  2. Select Pipelines from the left-hand menu.
  3. Click Releases.
  4. Create a new release pipeline by selecting New pipeline.

2. Add the DevTest Labs VM Creation Task

  1. In the new release pipeline, go to the Pipeline tab.
  2. In Stage 1, click the hyperlinked text (often named “Stage 1”).
  3. In the left pane, select…

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet