Member-only story
How to Create a DevTest Labs VM with Azure DevOps Pipelines
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
- Navigate to your Azure DevOps project.
- Select Pipelines from the left-hand menu.
- Click Releases.
- Create a new release pipeline by selecting New pipeline.
2. Add the DevTest Labs VM Creation Task
- In the new release pipeline, go to the Pipeline tab.
- In Stage 1, click the hyperlinked text (often named “Stage 1”).
- In the left pane, select…