|
| 1 | +--- |
| 2 | +title: Configure autostart settings for a VM in Azure DevTest Labs | Microsoft Docs |
| 3 | +description: Learn how to configure autostart settings for VMs in a lab. This setting allows VMs in the lab to be automatically started on a schedule. |
| 4 | +services: devtest-lab,lab-services |
| 5 | +documentationcenter: na |
| 6 | +author: spelluru |
| 7 | +editor: '' |
| 8 | + |
| 9 | +ms.assetid: |
| 10 | +ms.service: lab-services |
| 11 | +ms.workload: na |
| 12 | +ms.tgt_pltfrm: na |
| 13 | +ms.devlang: na |
| 14 | +ms.topic: article |
| 15 | +ms.date: 12/03/2019 |
| 16 | +ms.author: spelluru |
| 17 | + |
| 18 | +--- |
| 19 | + |
| 20 | +# Auto startup lab virtual machines |
| 21 | +Azure DevTest Labs allows you to configure virtual machines in your lab to be automatically started and shutdown based on a schedule. For information on configuring autoshutdown settings, see [Manage autoshutdown policies for a lab in Azure DevTest Labs](devtest-lab-auto-shutdown.md). |
| 22 | + |
| 23 | +Unlike autoshutdown, where all the VMs are included when the policy is turned on, the autostart policy requires a lab user to explicitly select a VM and opt in to this schedule. That way, you won't easily run into the situation where unwanted VMs are accidentally auto started and cause unexpected spending. |
| 24 | + |
| 25 | +This article shows you how to configure autostart policy for a lab. |
| 26 | + |
| 27 | +## Configure autostart settings for a lab |
| 28 | +1. Navigate to the home page for your lab. |
| 29 | +2. Select **Configuration and policies** on the left menu. |
| 30 | + |
| 31 | +  |
| 32 | +3. On the **Configuration and policies** page, do the following steps: |
| 33 | + |
| 34 | + 1. Select **On** for **Allow virtual machines to be scheduled for automatic start** to enable the autostart feature for this lab. |
| 35 | + 2. Select a start time (for example: 8:00:00 AM) for the **Schedule start** field. |
| 36 | + 3. Select a **time zone** to be used. |
| 37 | + 4. Select **days of the week** on which VMs need to be automatically started. |
| 38 | + 5. Then, select **Save** on the toolbar to save the settings. |
| 39 | + |
| 40 | +  |
| 41 | + |
| 42 | + > [!IMPORTANT] |
| 43 | + > This policy does not automatically apply auto-start to any virtual machines in the lab. To **opt in** individual virtual machines, go to the virtual machine page and enable **auto-start** for that VM. |
| 44 | +
|
| 45 | +## Enable autostart for a VM in the lab |
| 46 | +The following procedure provides you with steps for opting in a VM into the autostart policy of the lab. |
| 47 | + |
| 48 | +1. On the home page for your lab, select the **VM** in the **My virtual machines** list. |
| 49 | + |
| 50 | +  |
| 51 | +2. On the **Virtual machine** page, select **Autostart** on the left menu or in the **Schedules** list. |
| 52 | + |
| 53 | +  |
| 54 | +3. On the **Autostart** page, select **On** for the **Allow this virtual machine to be scheduled for automatic start** option. |
| 55 | + |
| 56 | +  |
| 57 | +4. Then, select **Save** on the toolbar to save the setting. |
| 58 | + |
| 59 | + |
| 60 | +## Next steps |
| 61 | +To learn about configuration autoshutdown policy for a lab, see [Manage autoshutdown policies for a lab in Azure DevTest Labs](devtest-lab-auto-shutdown.md) |
0 commit comments