|
1 | 1 | ---
|
2 |
| -title: Configure autostart settings for a VM |
| 2 | +title: Configure auto-start settings for a VM |
3 | 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 | 4 | ms.topic: how-to
|
5 |
| -ms.date: 06/26/2020 |
| 5 | +ms.date: 10/21/2021 |
6 | 6 | ---
|
7 | 7 |
|
8 |
| -# Auto startup lab virtual machines |
9 |
| -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). |
| 8 | +# Auto startup lab virtual machines |
10 | 9 |
|
11 |
| -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. |
| 10 | +Auto-start allows you to automatically start virtual machines (VMs) in a lab at a scheduled time each day. You first need to create an auto-start policy. Then you must select which VMs to follow the policy. The extra step of affirmatively selecting VMs to auto-start is meant to prevent the unintentional starting of VMs that result in increased costs. |
12 | 11 |
|
13 |
| -This article shows you how to configure autostart policy for a lab. |
| 12 | +This article shows you how to configure an auto-start policy for a lab. For information on configuring auto-shutdown settings, see [Manage autoshutdown policies for a lab in Azure DevTest Labs](devtest-lab-auto-shutdown.md). |
14 | 13 |
|
15 |
| -## Configure autostart settings for a lab |
16 |
| -1. Navigate to the home page for your lab. |
17 |
| -2. Select **Configuration and policies** on the left menu. |
| 14 | +## Configure auto-start settings for a lab |
18 | 15 |
|
19 |
| -  |
20 |
| -3. On the **Configuration and policies** page, do the following steps: |
21 |
| - |
22 |
| - 1. Select **On** for **Allow virtual machines to be scheduled for automatic start** to enable the autostart feature for this lab. |
23 |
| - 2. Select a start time (for example: 8:00:00 AM) for the **Schedule start** field. |
24 |
| - 3. Select a **time zone** to be used. |
25 |
| - 4. Select **days of the week** on which VMs need to be automatically started. |
26 |
| - 5. Then, select **Save** on the toolbar to save the settings. |
| 16 | +The policy doesn't automatically apply auto-start to any VMs in the lab. After configuring the policy, follow the steps from [Enable auto-start for a VM in the lab](#enable-auto-start-for-a-VM-in-the-lab). |
27 | 17 |
|
28 |
| -  |
| 18 | +1. Sign in to the [Azure portal](https://portal.azure.com/). |
29 | 19 |
|
30 |
| - > [!IMPORTANT] |
31 |
| - > 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. |
| 20 | +1. Navigate to your lab in **DevTest Labs**. |
32 | 21 |
|
33 |
| -## Enable autostart for a VM in the lab |
34 |
| -The following procedure provides you with steps for opting in a VM into the autostart policy of the lab. |
| 22 | +1. Under **Settings**, select **Configuration and policies**. |
35 | 23 |
|
36 |
| -1. On the home page for your lab, select the **VM** in the **My virtual machines** list. |
| 24 | + :::image type="content" source="./media/devtest-lab-auto-startup-vm/configuration-policies-menu.png" alt-text="Screenshot that shows the "Configuration and policies" menu in the DevTest Labs."::: |
37 | 25 |
|
38 |
| -  |
39 |
| -2. On the **Virtual machine** page, select **Autostart** on the left menu or in the **Schedules** list. |
| 26 | +1. On the **Configuration and policies** page, under **Schedules**, select **Auto-start**. |
40 | 27 |
|
41 |
| -  |
42 |
| -3. On the **Autostart** page, select **On** for the **Allow this virtual machine to be scheduled for automatic start** option. |
| 28 | +1. For **Allow auto-start**, select **Yes**. Scheduling information will then appear. |
43 | 29 |
|
44 |
| -  |
45 |
| -4. Then, select **Save** on the toolbar to save the setting. |
| 30 | + :::image type="content" source="./media/devtest-lab-auto-startup-vm/portal-lab-auto-start.png" alt-text="Auto-start option under Schedules."::: |
| 31 | + |
| 32 | +1. Provide the following scheduling information: |
46 | 33 |
|
| 34 | + |Property | Description | |
| 35 | + |---|---| |
| 36 | + |Scheduled start| Enter a start time.| |
| 37 | + |Time zone| Select a time zone from the drop-down list.| |
| 38 | + |Days of the week| Select each box next to the day you want the schedule to be applied.| |
| 39 | + |
| 40 | + :::image type="content" source="./media/devtest-lab-auto-startup-vm/auto-start-configuration.png" alt-text="Autostart schedule settings."::: |
| 41 | + |
| 42 | +1. Select **Save**. |
| 43 | + |
| 44 | +## Enable auto-start for a VM in the lab |
| 45 | + |
| 46 | +These steps continue from the prior section. Now that an auto-start policy has been created, select the VMs to apply the policy against. |
| 47 | + |
| 48 | +1. Close the **Configuration and policies** page to return to the **DevTest Labs** page. |
| 49 | + |
| 50 | +1. Under **My virtual machines**, select a VM. |
| 51 | + |
| 52 | + :::image type="content" source="./media/devtest-lab-auto-startup-vm/select-vm.png" alt-text="Select VM from list under My virtual machines."::: |
| 53 | + |
| 54 | +1. On the **virtual machine** page, under **Operations**, select **Auto-start**. |
| 55 | + |
| 56 | +1. On the **Auto-start** page, select **Yes**, and then **Save**. |
| 57 | + |
| 58 | + :::image type="content" source="./media/devtest-lab-auto-startup-vm/select-auto-start.png" alt-text="Select autostart menu."::: |
47 | 59 |
|
48 | 60 | ## Next steps
|
| 61 | + |
49 | 62 | 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