Edit

Share via


Autostop dev boxes on schedule

This article explains how to enable an autostop schedule on a dev box pool to save on costs. Microsoft Dev Box then attempts to stop or hibernate all dev boxes in the pool daily at the time specified in the schedule.

Project administrators can manage autostop schedules by using the Azure portal or the Azure CLI. You can configure one stop time in one timezone for each pool.

Note

Autostop behavior depends on whether the applied dev box definition supports hibernation. Hibernation-enabled dev boxes hibernate at the scheduled autostop time. Dev boxes that don't support hibernation shut down at the scheduled time. For more information, see How to configure dev box hibernation.

Prerequisites

Category Requirement
Permissions Owner, Contributor, or DevCenter Project Admin role or permissions on a dev box project.

Create an autostop schedule

You can create an autostop schedule while configuring a new dev box pool, or by modifying an already existing dev box pool.

The following procedures describe how to use the Azure portal to create and configure autostop schedules for existing or new dev box pools.

Add an autostop schedule to an existing pool

Follow these steps to add an autostop schedule to an existing dev box pool:

  1. In the Azure portal, open the project associated with the pool that you want to edit and select Dev box pools in the left navigation menu.

  2. On the Dev box pools page, select the checkbox for the pool you want to modify, select the More actions icon at right, and then select Edit.

    Screenshot of the list of existing dev box pools for the project.

  3. In the Edit pane, select the Management tab.

  4. Under Cost controls on the Management screen, select the checkbox for Auto-stop on schedule.

  5. For Stop time, select a time to shut down or hibernate all the dev boxes in the pool daily.

  6. For Time zone, select the time zone that the stop time is in.

  7. Select Save.

    Screenshot of the edit dev box pool page showing the Cost controls section and the autostop option selected.

Add an autostop schedule when you create a pool

Follow these steps to add an autostop schedule when you create a dev box pool.

  1. In the Azure portal, open the project you want to add the pool to and select Dev box pools in the left navigation menu.

  2. On the Dev box pools page, select Create, and start to create a dev box pool by following the instructions at Create a dev box pool.

    Screenshot of the list of dev box pools within a project. The list is empty. The Create option is selected.

  3. Under Cost controls on the Management tab of the Create a dev box pool form, select the checkbox for Auto-stop on schedule.

  4. For Stop time, select a time to shut down or hibernate all the dev boxes in the pool daily.

  5. For Time zone, select the time zone that the stop time is in.

  6. Finish configuring the other pool settings, and then select Create.

    Screenshot of the Create dev box pool dialog.

Verify that the new dev box pool appears in the dev pool list. You might need to refresh the screen.

Delete an autostop schedule

The following steps delete the autostop schedule associated with a dev box pool.

  1. In the Azure portal, open the project associated with the pool that you want to edit and select Dev box pools in the left navigation menu.

  2. On the Dev box pools page, select the checkbox for the pool you want to modify, select the More actions icon next to the entry, and then select Edit.

  3. In the Edit pane, select the Management tab.

  4. Under Cost controls on the Management tab, deselect the checkbox for Auto-stop on schedule.

    Screenshot of the edit dev box pool page showing the autostop on schedule option unselected.

  5. Select Save.

After you deselect the setting, dev boxes in this pool no longer stop automatically.