Cloud service · Azure · Updated

Azure DevTest Labs - Azure DevTest Labs is an Azure service for provisioning and managing development and test virtual machines and environments using reusable configurations and lab-level controls.

In short

Azure DevTest Labs gives developers and testers self-service access to Windows and Linux virtual machines, preconfigured machine pools, and template-defined Azure environments. Lab owners control available configurations, access, VM limits, and operating schedules while tracking the cost of the underlying Azure resources.

Cloud Services Hub →

9 key features of Azure DevTest Labs

01
Self-service VM provisioning

Let developers create Windows and Linux VMs from approved configurations using lab-scoped permissions. Lab policies constrain choices such as VM sizes and the number of machines each user can create.

02
Reusable images and formulas

Provide Marketplace or custom images and capture common VM settings in formulas. Use images for preinstalled software and formulas for defaults that users can adjust within lab policy.

03
Artifact-based configuration

Apply artifacts to install tools, deploy applications, clone repositories, or perform configuration tasks. Connect a private Git repository for organization-specific artifacts, and configure mandatory artifacts when required.

04
Claimable VM pools

Prepare machines before users need them and expose them through the lab's claimable VM pool. Once claimed, a VM belongs to that user and is no longer available for others to claim.

05
Template-defined environments

Publish ARM templates that deploy multi-resource environments, including VMs and Azure platform services. Configure environment permissions separately when users need to change the deployed resources.

06
Usage and lifecycle controls

Set allowed VM sizes, per-user and per-lab VM limits, shutdown schedules, and VM expiration dates. Combine these controls with cleanup automation because stopping compute does not remove storage or all associated charges.

07
Role-based administration

Separate lab administration from day-to-day resource use through Azure RBAC. Owners can manage access, Contributors can configure lab resources without assigning roles, and DevTest Labs Users can manage their own resources within policy restrictions.

08
Controlled network placement

Configure the virtual networks and subnets available to lab VMs. Use network security controls and private connectivity to connect test machines to approved internal dependencies without exposing management ports publicly.

09
Cost visibility

Review lab cost trends and resource costs to identify idle or oversized infrastructure. Environment costs contribute to the lab total, but the lab's resource-cost view represents an environment as a single cost rather than itemizing its internal resources.

Where Azure DevTest Labs is used

  1. 01
    Standardized developer machines

    Publish a maintained image and formula containing the supported SDKs, development tools, and network settings. New developers can provision a consistent machine without requiring subscription-wide permissions.

  2. 02
    Disposable integration test environments

    Have a CI/CD pipeline deploy a template-defined environment, install the application, run tests, and delete the environment afterward. Include failure-path cleanup so unsuccessful tests do not leave infrastructure running.

  3. 03
    Workshops and technical training

    Preconfigure a pool of claimable VMs so participants can start with identical software and sample data. Apply expiration dates and explicitly remove remaining resources after the event.

  4. 04
    Compatibility and configuration testing

    Create separate machines from different approved operating system images or formulas to test application behavior across configurations. Keep test data and application versions controlled so results remain comparable.

  5. 05
    Temporary performance test agents

    Provision multiple VMs with the required load-generation tools and connect them to an authorized test target. Plan for compute quotas, network limits, and target capacity, then deallocate or delete the agents after the run.

  6. 06
    Isolated proof-of-concept environments

    Offer developers approved infrastructure templates for evaluating application designs and Azure services. Limit VM consumption and grant resource-group-scoped environment permissions only where experimentation requires them.

How Azure DevTest Labs is priced

No additional DevTest Labs service charge

Azure DevTest Labs has no additional service fee. Charges apply to the Azure resources created or used by the lab, including VMs, disks, storage, networking, and platform services.

Underlying Azure resource consumption

Resources follow their respective Azure pricing meters and purchasing arrangements. Deallocating a VM stops its compute charges, but retained disks and other billable resources can continue to accrue costs; shutting down only inside the guest operating system does not necessarily stop compute billing.

Eligible Azure Dev/Test subscription offers

Qualifying Azure Dev/Test offers can provide reduced rates for eligible nonproduction workloads, subject to subscription, licensing, and user eligibility requirements. Creating a DevTest Labs lab does not automatically enroll the subscription in a discounted offer or provide software licenses.

Services Azure DevTest Labs works with

A common architecture separates centrally managed lab configuration from developer-owned workloads. Platform administrators configure virtual networks, approved image sources, artifact repositories, and lab policies. Azure Compute Gallery supplies maintained base images, while Azure Resource Manager templates define repeatable environments containing application infrastructure and platform services. Key Vault-backed secrets keep supported sensitive provisioning inputs outside source-controlled configuration.

Azure DevOps pipelines provide the automation layer: create an environment, deploy a build, execute tests, collect results, and remove the environment. Use narrowly scoped pipeline permissions and ensure cleanup runs when deployment or testing fails. For persistent developer VMs, combine maintained images with ongoing guest patching; publishing a new image version does not update existing machines.

Network design should reflect the dependencies under test. Lab VMs can use approved subnets with private access to shared services or on-premises systems, provided routing, DNS, and provisioning connectivity are configured correctly. Azure Functions can add operational workflows such as inventory reporting or artifact application through the lab APIs. Across these patterns, track the complete resource lifecycle: stopping a VM does not delete its disks, remove every networking charge, or stop separately deployed platform services.

Azure DevOps

Use Azure Pipelines to provision lab VMs or template-defined environments, deploy application builds, and run automated tests. For example, a pipeline can create a temporary integration environment and delete it in a cleanup stage that also runs after test failures. Scope the pipeline identity to the resources and operations it actually needs.

Azure Virtual Network

Place lab VMs in approved virtual networks and subnets, with network security groups controlling traffic. For example, a team can connect test VMs to an existing network that reaches an on-premises dependency through VPN or ExpressRoute. Validate DNS resolution, routing, and required provisioning connectivity before restricting outbound access.

Azure Key Vault

Use Key Vault-backed lab secrets to keep supported credentials and configuration secrets out of reusable scripts and formulas. For example, configure a secret reference for a supported provisioning workflow instead of committing a password to an artifact repository. Restrict vault access and plan secret rotation alongside the workflows that consume those values.

Azure Resource Manager

Use ARM templates to define labs and publish repeatable multi-resource environment configurations. For example, an environment template can provision an Azure App Service application and an Azure SQL Database with parameters for each test deployment. Validate templates against organizational policies and configure the permissions users receive on the environment resource group.

Azure Functions

Extend lab management with functions that call the DevTest Labs APIs using an appropriately authorized identity. For example, a function can generate a VM inventory for an internal support page or apply a Windows Update artifact to running lab VMs. Add authentication, error handling, and retry logic to avoid exposing administrative operations or duplicating work.

App Service

Azure DevTest Labs can deploy App Service web apps as part of a reusable lab environment template. A team can provision a staging web app alongside the other resources it needs for a test run.

Automation

Azure DevTest Labs VM lifecycle operations can be scheduled through Azure Automation runbooks. For example, a runbook can start a selected set of lab VMs before a recurring test run.

Azure Backup

Azure DevTest Labs VMs can be protected by Azure Backup policies in a Recovery Services vault. Lab administrators can schedule backups and restore a VM or recover files from a recovery point.

Azure Bastion

Azure DevTest Labs users can connect to lab VMs over RDP or SSH through Azure Bastion in the lab's virtual network. The VMs can keep private IP addresses without exposing their remote-access ports to the internet.

Azure Blob Storage

Azure DevTest Labs uses Blob Storage in lab storage accounts to stage files for VM artifacts. A lab can also create a custom VM image from a VHD uploaded to Blob Storage.

What is Azure DevTest Labs

2 min read

Azure DevTest Labs organizes development and test infrastructure into labs. A lab provides a shared configuration boundary for approved images, reusable VM configurations, artifact repositories, networking settings, and usage policies. Developers can create their own resources within these controls without receiving broad permissions across the Azure subscription.

Start by creating a lab in the required Azure region and configuring its network, user roles, allowed VM sizes, and VM count limits. Check subscription compute quotas and regional capacity separately: a lab policy allowing a VM size does not guarantee that Azure can allocate it. Assign the DevTest Labs User role to developers who need self-service provisioning, and reserve lab administration and access management for appropriate administrative roles.

VM provisioning combines base images, formulas, and artifacts. Base images can come from Azure Marketplace or an organization’s custom image workflow. A formula stores default choices such as the image, VM size, virtual network, and artifacts; it is a reusable starting configuration rather than an immutable machine definition. Artifacts install tools or perform configuration tasks during or after provisioning. Keep custom artifacts in a connected Git repository, test their execution, and avoid embedding credentials in scripts or configuration files.

For users who need immediate access, administrators can prepare claimable VMs in advance. Claiming assigns a machine to a user and removes it from the shared pool. This is useful for workshops and onboarding, but preprovisioned machines and their disks can incur charges before anyone claims them. Maintain the pool deliberately rather than treating unclaimed resources as free capacity.

For applications with multiple components, publish Azure Resource Manager templates as environment templates. These environments can contain multiple VMs and platform services, such as an application service and a database. Environments normally have their own resource groups. Configure environment user rights explicitly when developers need to modify the deployed resources; permission to provision an environment does not automatically provide unrestricted management of its contents.

Use VM count limits, allowed sizes, automatic shutdown, and expiration dates together to reduce waste. A stopped guest operating system is not equivalent to a deallocated VM for billing purposes. Verify the Azure VM power state, and remember that disks, retained networking resources, and platform services can continue to incur charges after VM compute stops. Lab cost targets and Azure budget alerts are monitoring controls, not guaranteed spending caps.

Lab resources remain ordinary Azure resources and require normal security and operational management. Prefer private connectivity where appropriate, restrict inbound access, maintain images and guest operating systems, and apply organizational Azure Policy requirements. Automate provisioning and cleanup through deployment pipelines or Azure APIs, and verify that failed deployments and completed test runs do not leave chargeable resources behind.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.