Skip to content

Commit cab98ec

Browse files
authored
Merge pull request #302651 from RoseHJM/mdb-auto-delete
MDB - auto delete dev boxes
2 parents ad57059 + e022768 commit cab98ec

10 files changed

+97
-2
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
title: Enable Dev Box Auto-Delete to Control Costs
3+
description: Dev Box autodeletion helps you control costs by removing unused Dev Boxes. Learn how to enable, configure, and cancel autodeletion in Azure.
4+
#customer intent: As a Dev Box admin, I want to enable auto-deletion for unused Dev Boxes so that I can control costs in my Azure subscription.
5+
author: RoseHJM
6+
contributors: null
7+
ms.topic: how-to
8+
ms.date: 07/11/2025
9+
ms.author: rosemalcolm
10+
ms.reviewer: rosemalcolm
11+
ms.custom:
12+
- ai-gen-docs-bap
13+
- ai-gen-title
14+
- ai-seo-date:07/11/2025
15+
- ai-gen-description
16+
---
17+
18+
# Configure Microsoft Dev Box autodeletion
19+
20+
Microsoft Dev Box Auto Delete (Preview) helps organizations manage resources and control costs by automatically deleting unused Dev Boxes. This article explains how to enable the feature, configure autodeletion settings, and cancel scheduled deletions in both the Azure portal and developer portal. Use these steps to optimize Dev Box usage in your Azure subscription.
21+
22+
## Prerequisites
23+
24+
- Microsoft Dev Box configured with a dev center and at least one project.
25+
26+
## Enable the preview feature
27+
28+
While the Dev Box Auto Delete feature is in Preview, you must manually enable it in your Azure subscription. Follow these steps:
29+
30+
1. Sign in to the [Azure portal](https://portal.azure.com).
31+
1. Go to the Azure subscription where you want to enable Dev Box autodeletion.
32+
1. In the left menu, select **Preview features**.
33+
1. In the search box, type "Dev Box Auto".
34+
1. Select **Dev Box Auto Delete Preview**, and then select **Register**.
35+
36+
:::image type="content" source="media/how-to-auto-delete-dev-box/dev-box-auto-delete-enable-preview.png" alt-text="Screenshot of the Azure portal showing the Preview features pane with Dev Box Auto Delete Preview selected." lightbox="media/how-to-auto-delete-dev-box/dev-box-auto-delete-enable-preview.png":::
37+
38+
After you register the feature, it will be available for use in your subscription.
39+
40+
## Set up autodeletion in a project
41+
42+
To configure autodeletion for unused dev boxes in a project, follow these steps in the Azure portal:
43+
44+
1. Open an existing Dev Box project, or create a new one in your subscription.
45+
1. In the left menu, under **Settings**, select **Dev box settings**.
46+
1. On the **Dev box settings** page, in the **Cost controls** section, select **Automatically delete unused dev boxes**.
47+
48+
:::image type="content" source="media/how-to-auto-delete-dev-box/dev-box-auto-delete-enable.png" alt-text="Screenshot of the Azure portal showing the option to enable automatic deletion of unused dev boxes in project settings." lightbox="media/how-to-auto-delete-dev-box/dev-box-auto-delete-enable.png":::
49+
50+
1. When automatic deletion is enabled, you can configure the following options:
51+
- **Inactivity threshold**: Enter the number of inactive days before a Dev Box is scheduled for automatic deletion (for example, 30 days).
52+
- **Grace period**: Enter the number of days the developer or admin has to respond and keep the Dev Box (for example, 30 days).
53+
54+
:::image type="content" source="media/how-to-auto-delete-dev-box/dev-box-auto-delete-settings.png" alt-text="Screenshot of the Dev box settings page in Azure portal showing the cost controls section with autodeletion options." lightbox="media/how-to-auto-delete-dev-box/dev-box-auto-delete-settings.png":::
55+
56+
1. Select **Apply**.
57+
58+
## Cancel scheduled deletions in the Azure portal
59+
60+
To cancel a scheduled deletion in the Azure portal, follow these steps:
61+
62+
1. Go to the pool that has your Dev Box scheduled for deletion.
63+
1. Select that pool to view its Dev Boxes. You need Project Admin access to finish this step.
64+
1. Select the ellipses (**...**) next to the Dev Box scheduled for deletion.
65+
1. Select **Cancel deletion**.
66+
67+
:::image type="content" source="media/how-to-auto-delete-dev-box/dev-box-azure-portal-cancel-auto-delete.png" alt-text="Screenshot of the Azure portal showing the pool details and the cancel deletion option for a Dev Box." lightbox="media/how-to-auto-delete-dev-box/dev-box-azure-portal-cancel-auto-delete.png":::
68+
69+
The selected dev box isn't deleted.
70+
71+
## Cancel scheduled deletions in the developer portal
72+
73+
After reaching the inactivity threshold, you'll get an email notification warning you that your Dev Box is scheduled for deletion.
74+
75+
:::image type="content" source="media/how-to-auto-delete-dev-box/dev-box-auto-delete-email.png" alt-text="Screenshot showing an email notification informing the user that their dev box will be deleted. The message states when dev box will be deleted." lightbox="media/how-to-auto-delete-dev-box/dev-box-auto-delete-email.png":::
76+
77+
If you want to cancel the scheduled deletion and keep your dev box, follow these steps:
78+
79+
1. Sign in to the [developer portal](https://aka.ms/devbox-portal).
80+
1. In the developer portal, find the dev box scheduled for deletion.
81+
1. Select **Keep this dev box** to cancel the automatic deletion.
82+
83+
:::image type="content" source="media/how-to-auto-delete-dev-box/dev-box-developer-portal-keep.png" alt-text="Screenshot of the Dev Box developer portal showing the scheduled deletion notice and the option to keep the dev box.":::
84+
85+
The selected dev box isn't deleted.
86+
87+
If you don't see a dev box tile with a pending deletion notice, check with your admin that you still have access to the project containing the dev box.
88+
89+
## Related content
90+
91+
- [Autostop your Dev Boxes on schedule](how-to-configure-stop-schedule.md)

articles/dev-box/index.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ landingContent:
8787
url: how-to-request-quota-increase.md
8888
- text: Configure Dev Box Hibernation
8989
url: how-to-configure-dev-box-hibernation.md
90+
- text: Delete unused dev boxes
91+
url: how-to-auto-delete-dev-box.md
9092
- text: Autostop Dev Boxes on schedule
9193
url: how-to-configure-stop-schedule.md
9294
- text: Skip or delay a scheduled shutdown
27 KB
Loading
77.8 KB
Loading
60.2 KB
Loading
65.2 KB
Loading
14.8 KB
Loading
42.3 KB
Loading
0 Bytes
Loading

articles/dev-box/toc.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ items:
105105
- name: Connect to a dev box with a dev tunnel
106106
href: how-to-set-up-dev-tunnels.md
107107
- name: AI on Dev Box
108-
items:
108+
items:
109109
- name: Configure Serverless GPU
110110
href: how-to-configure-dev-box-serverless-gpu.md
111111
- name: Security
@@ -136,6 +136,8 @@ items:
136136
href: how-to-configure-stop-on-disconnect.md
137137
- name: Skip or delay an automatic shutdown
138138
href: how-to-skip-delay-stop.md
139+
- name: Delete unused dev boxes
140+
href: how-to-auto-delete-dev-box.md
139141
- name: Connect devices to dev boxes
140142
items:
141143
- name: Connect physical devices to a dev box
@@ -172,7 +174,7 @@ items:
172174
href: how-to-get-help.md
173175
- name: Reference
174176
items:
175-
- name: 'Reference: imagedefinition.yaml and task.yaml files'
177+
- name: "Reference: imagedefinition.yaml and task.yaml files"
176178
href: reference-dev-box-customizations.md
177179
displayName: Customize, schema, yaml, imagedefinition, task
178180
- name: Install Azure CLI devcenter extension

0 commit comments

Comments
 (0)