Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure DevTest Labs is a service that enables developers and testers to quickly create and manage Azure virtual machines for development and testing. With a self-service model, built-in cost control, and automation features, DevTest Labs helps teams efficiently provision environments, reduce costs, and streamline workflows.
DevTest Labs resources are organized into Labs, which provide preconfigured bases and artifacts for creating VMs. Lab owners create preconfigured VMs with the tools and software lab users need. Lab users claim preconfigured VMs, or create and set up their own VMs. Lab policies and other methods track and control lab usage and costs.
Common DevTest Labs scenarios
Common DevTest Labs scenarios include VMs for development, testing, and classroom or training labs. DevTest Labs helps you work efficiently, consistently, and control costs by keeping all resource usage within the lab context.
Use DevTest Labs when you need:
- Fast, repeatable VM provisioning
- Cost control for dev/test workloads
- Integration with CI/CD pipelines
- Lightweight governance for distributed teams
How does DevTest Labs work?
DevTest Labs is built on Azure Resource Manager (ARM) and uses the Azure portal to create and manage labs, VMs, and other resources. Lab owners can create labs with preconfigured bases, artifacts, and templates. Lab users can claim VMs or create their own VMs from the lab's resources.
Create a Lab From the Azure portal, search for "DevTest Labs" and create a new lab. You define basic settings like lab name, region, and autoshutdown policies.
Configure Policies Set limits on VM sizes, number of VMs per user, and total VMs. These policies help enforce governance and budget constraints.
Add Custom Images and Artifacts Upload your own VM images or use Azure Marketplace images. Attach artifacts to automate software installation and configuration.
Provision VMs Users can create VMs from the lab's templates. These VMs inherit the lab's policies and can be managed individually or as part of a lab.
Monitor Usage Use built-in dashboards to track cost trends and resource usage, helping teams stay within budget and optimize resource allocation.
Custom VM bases, artifacts, and templates
DevTest Labs uses custom images, formulas, artifacts, and templates to create and manage labs and VMs. The DevTest Labs public GitHub repository has many ready-to-use VM artifacts and ARM templates for creating labs or sandbox resource groups. Lab owners create custom images, formulas, and ARM templates to create and manage labs and VMs.
Lab owners store artifacts and ARM templates in private Git repositories and connect the artifact repositories and template repositories to their labs so lab users can access them directly from the Azure portal. Add the same repositories to multiple labs in your organization to promote consistency, reuse, and sharing.
Lab policies and procedures to control costs
Lab owners can take several steps to reduce waste and control lab costs.
- Set lab policies, like the allowed number or size of VMs per user or lab.
- Set autoshutdown and autostartup schedules to shut down and start up lab VMs at specific times of day.
- Monitor costs to track lab and resource usage and estimate trends.
- Set VM expiration dates or delete labs or lab VMs when you no longer need them.
Next steps
Get started with Azure DevTest Labs
New to Azure? Create a free Azure account.
Already on Azure? Create your first lab and get started with Azure DevTest Labs in minutes.