This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
This article describes how Azure DevTest Labs administrators can manage lab policies to control lab costs, minimize waste, and improve manageability. Lab policies you can set include:
Contributor orOwner level permissions in the lab.
To set lab policies:
On your lab page in theAzure portal, selectConfiguration and policies from the left navigation menu.

On theConfiguration and policies page, select the policy you want to configure from theSettings andSchedules sections of the left navigation menu.

This policy limits the VM sizes that users can create in the lab. The default policy setting isAll sizes.

These two policies specify the maximum number of VMs and VMs using premium disks that an individual lab user can claim or create. The default setting for both policies isOff.

If a user tries to create or claim a VM after the user limit is met, an error message indicates that the user can't exceed their VM limit.

These two policies specify the maximum number of VMs and VMs using premium disks that all users can create in the current lab. The default setting for both policies isOff.

If a user tries to create a VM after the lab limit is met, an error message indicates that the VM can't be created.
Autoshutdown helps minimize lab waste by shutting down lab VMs at a specific time of day. The default policy setting isOff.

By default, the autoshutdown schedule applies to all lab VMs. If allowed byautoshutdown policy, lab users can override lab autoshutdown settings for their own individual VMs. To set a shutdown schedule for an individual VM:
For more information about autoshutdown and sending notifications, seeConfigure autoshutdown for labs and VMs in DevTest Labs.
Autostart policy helps you minimize waste by specifying a specific time of day and days of the week to start up lab VMs. The default policy setting isNo.
Important
This policy isn't automatically applied to lab VMs. To apply this setting to individual VMs, open the VM's page and selectAuto-start from the left navigation menu. On theAuto-start page, selectYes forAllow this virtual machine to be scheduled for automatic start, and then selectSave.

For more information and details about autostart policy, seeStart up lab virtual machines automatically.
If you set an autoshutdown schedule for lab VMs, you can also set a policy to let lab users override the lab autoshutdown settings for their own VMs. You can set autoshutdown policy to allow lab users full control, partial control, or no control over their own VMs' autoshutdown activity.
Important
Autoshutdown policy changes apply only to new lab VMs, not to already-existing VMs.
On the lab'sConfiguration and policies page, selectAuto shutdown policy from the left navigation.
Select one of the following options:
SelectSave.

For more information and details about autoshutdown policy, seeConfigure lab autoshutdown policy.
Besides setting policies, here are more ways to control and manage DevTest Labs costs:
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?