# 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.

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/azure-devtest-labs

> 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.

## 9 key features of Azure DevTest Labs

1. **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.
2. **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.
3. **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.
4. **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.
5. **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.
6. **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.
7. **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.
8. **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.
9. **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. **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. **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. **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. **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. **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. **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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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.
- **[Azure Disk Storage](https://blowstack.com/tools/cloud-services-hub/azure-disk-storage)**: Azure DevTest Labs provisions Azure managed disks for lab VMs. Lab users can create and attach persistent data disks, then detach them when they want to retain the data independently of a VM.
- **[Azure ExpressRoute](https://blowstack.com/tools/cloud-services-hub/azure-expressroute)**: Azure DevTest Labs can provision VMs into an existing virtual network connected to a corporate network through ExpressRoute. This lets private-IP lab VMs reach on-premises resources over the private connection.
- **[Azure Files](https://blowstack.com/tools/cloud-services-hub/azure-files)**: Azure DevTest Labs can use a VM artifact to mount an Azure Files SMB share during provisioning. Lab VMs can then access a common set of installers or test inputs without baking those files into each VM image.
- **[Azure Load Balancer](https://blowstack.com/tools/cloud-services-hub/azure-load-balancer)**: When Azure DevTest Labs provisions VMs with a shared public IP address, it uses Azure Load Balancer inbound NAT rules to direct each VM's assigned port to that VM. This allows several lab VMs to share one public IP for RDP or SSH connections.
- **[Azure Marketplace](https://blowstack.com/tools/cloud-services-hub/azure-marketplace)**: Azure DevTest Labs can provision VMs from Azure Marketplace images. Lab owners can restrict the available Marketplace images so users start from approved operating system and software configurations.
- **[Azure Monitor](https://blowstack.com/tools/cloud-services-hub/azure-monitor)**: Azure DevTest Labs management operations appear in the Azure Monitor activity log, where administrators can review changes or set alerts for selected operations. Azure Monitor can also collect guest telemetry from lab VMs through Azure Monitor Agent.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: Azure Policy can enforce rules on Azure DevTest Labs resources and on the Azure VMs created by a lab. For example, an administrator can restrict changes to lab settings or require lab VMs to follow a naming convention.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: Azure DevTest Labs provides dedicated Azure portal pages for creating labs, configuring policies and VM bases, and managing lab resources. Lab users can use those pages to claim a preconfigured VM or create one from an approved image.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Azure DevTest Labs uses Azure RBAC to control who can administer a lab and who can create or manage its resources. The DevTest Labs User role lets users provision and manage their own lab VMs without granting them control over lab policies.
- **[Azure Service Fabric](https://blowstack.com/tools/cloud-services-hub/azure-service-fabric)**: Azure DevTest Labs can provision a Service Fabric cluster from a reusable lab environment template. Developers can create a test cluster on demand and remove it when the environment is no longer needed.
- **[Azure SQL Database](https://blowstack.com/tools/cloud-services-hub/azure-sql-database)**: Azure DevTest Labs can deploy Azure SQL Database as part of a lab environment template. This lets testers provision a database with the rest of the test environment rather than share a database across test runs.
- **[Azure VPN Gateway](https://blowstack.com/tools/cloud-services-hub/azure-vpn-gateway)**: Azure DevTest Labs can place lab VMs in an existing virtual network connected to an on-premises network by a site-to-site VPN. Users can then reach private-IP lab VMs from the corporate network without assigning a public IP to each VM.
- **[Event Grid](https://blowstack.com/tools/cloud-services-hub/event-grid)**: Azure DevTest Labs resource changes can trigger workflows through Event Grid subscriptions for Azure Resource Manager events. A subscription can filter for lab resource writes or deletions and route the matching events to a handler.
- **[Linux Virtual Machines](https://blowstack.com/tools/cloud-services-hub/linux-virtual-machines)**: Azure DevTest Labs provisions Linux VMs from approved Marketplace or custom images. Lab artifacts can install and configure tools during provisioning so developers start with a consistent Linux test machine.
- **[Logic Apps](https://blowstack.com/tools/cloud-services-hub/logic-apps)**: Azure DevTest Labs can send VM auto-shutdown notifications to a Logic Apps webhook. The workflow can relay the warning to a team channel before the scheduled shutdown.
- **[Microsoft Cost Management](https://blowstack.com/tools/cloud-services-hub/microsoft-cost-management)**: Azure DevTest Labs resource charges can be tracked in Microsoft Cost Management using resource groups or cost allocation tags. Administrators can use those groupings to analyze lab spending and set budget alerts.
- **[Microsoft Defender for Cloud](https://blowstack.com/tools/cloud-services-hub/microsoft-defender-for-cloud)**: Microsoft Defender for Cloud assesses the Azure VMs provisioned by Azure DevTest Labs and reports security recommendations for them. With Defender for Servers enabled, those lab VMs can also receive server workload protection.
- **[Microsoft Entra Domain Services](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-domain-services)**: Azure DevTest Labs Windows VMs can join a Microsoft Entra Domain Services managed domain reachable from the lab's virtual network. Users can then sign in with domain credentials instead of relying only on local VM accounts.
- **[Microsoft Entra ID (formerly Azure AD)](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-id-(formerly-azure-ad))**: Azure DevTest Labs uses Microsoft Entra identities for lab access, including groups for team access and service principals for automation. A pipeline can authenticate as a service principal with permissions scoped to the lab.
- **[SQL Server on Azure Virtual Machines](https://blowstack.com/tools/cloud-services-hub/sql-server-on-azure-virtual-machines)**: Azure DevTest Labs can use SQL Server Marketplace VM images as approved lab bases. Testers can provision a VM with SQL Server already installed instead of installing the database engine on each new machine.
- **[Update management center](https://blowstack.com/tools/cloud-services-hub/update-management-center)**: Azure DevTest Labs VMs can be assessed and patched through Update management center, now Azure Update Manager. Administrators can check which updates are missing and apply them during a maintenance window.
- **[Virtual Machines](https://blowstack.com/tools/cloud-services-hub/virtual-machines)**: Azure DevTest Labs provisions and manages Azure Virtual Machines as lab resources. Lab users can create VMs from approved images and artifacts or claim preconfigured machines, subject to lab limits and shutdown schedules.

## What is Azure DevTest Labs

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.
