Skip to content

Files

Latest commit

9cab5af · Mar 30, 2022

History

History
55 lines (32 loc) · 3.13 KB

devtest-lab-auto-startup-vm.md

File metadata and controls

55 lines (32 loc) · 3.13 KB
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

Automatically start lab VMs with auto-start in Azure DevTest Labs

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.

Configure auto-start for the lab

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.

  1. 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.":::

  2. On the Configuration and policies page, select Auto-start under Schedules in the left navigation.

  3. 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.":::

  4. 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.

  5. Select Save.

    :::image type="content" source="./media/devtest-lab-auto-startup-vm/auto-start-configuration.png" alt-text="Screenshot of auto-start schedule settings.":::

Add VMs to the auto-start schedule

After you configure the auto-start policy, follow these steps for each VM that you want to auto-start.

  1. 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.":::

  2. On the VM's Overview page, select Auto-start under Operations in the left navigation.

  3. 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.":::

Next steps