title | description | ms.topic | ms.author | author | ms.date |
---|---|---|---|---|---|
Configure auto-start settings for a VM |
Learn how to configure auto-start settings for VMs in a lab. This setting allows VMs in the lab to be automatically started on a schedule. |
how-to |
rosemalcolm |
RoseHJM |
03/29/2022 |
This article shows how to configure and apply an auto-start policy for Azure DevTest Labs virtual machines (VMs). Auto-start automatically starts up lab VMs at specified times and days.
To implement auto-start, you configure an auto-start policy for the lab first. Then, you can enable the policy for individual lab VMs. Requiring individual VMs to enable auto-start helps prevent unnecessary startups that could increase costs.
You can also configure auto-shutdown policies for lab VMs. For more information, see Manage auto shutdown policies for a lab in Azure DevTest Labs.
To configure auto-start policy for a lab, follow these steps. After configuring the policy, enable auto-start for each VM that you want to auto-start.
-
On your lab Overview page, select Configuration and policies under Settings in the left navigation.
:::image type="content" source="./media/devtest-lab-auto-startup-vm/configuration-policies-menu.png" alt-text="Screenshot that shows selecting Configuration and policies in the left navigation menu.":::
-
On the Configuration and policies page, select Auto-start under Schedules in the left navigation.
-
Select Yes for Allow auto-start.
:::image type="content" source="./media/devtest-lab-auto-startup-vm/portal-lab-auto-start.png" alt-text="Screenshot of Auto-start option under Schedules.":::
-
Enter a Scheduled start time, select a Time zone, and select the checkboxes next to the Days of the week that you want to apply the schedule.
-
Select Save.
:::image type="content" source="./media/devtest-lab-auto-startup-vm/auto-start-configuration.png" alt-text="Screenshot of auto-start schedule settings.":::
After you configure the auto-start policy, follow these steps for each VM that you want to auto-start.
-
On your lab Overview page, select the VM under My virtual machines.
:::image type="content" source="./media/devtest-lab-auto-startup-vm/select-vm.png" alt-text="Screenshot of selecting a VM from the list under My virtual machines.":::
-
On the VM's Overview page, select Auto-start under Operations in the left navigation.
-
On the Auto-start page, select Yes for Allow this virtual machine to be scheduled for automatic start, and then select Save.
:::image type="content" source="./media/devtest-lab-auto-startup-vm/select-auto-start.png" alt-text="Screenshot of selecting Yes on the Auto-start page.":::