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.