You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/dev-box/how-to-configure-dev-box-hibernation.md
+21-15Lines changed: 21 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,29 @@
1
1
---
2
2
title: Configure hibernation for Microsoft Dev Box
3
3
titleSuffix: Microsoft Dev Box
4
-
description: Learn how to enable, disable, and troubleshoot hibernation in Microsoft Dev Box. Configure hibernation settings for your image and dev box definition.
4
+
description: "Configure hibernation in Microsoft Dev Box to support cost-effective development and uninterrupted workflows. "
5
5
services: dev-box
6
6
ms.service: dev-box
7
7
ms.custom:
8
8
- build-2024
9
+
- ai-gen-docs-bap
10
+
- ai-gen-description
11
+
- ai-seo-date:03/23/2025
9
12
author: RoseHJM
10
13
ms.author: rosemalcolm
11
-
ms.date: 01/02/2024
14
+
ms.date: 03/23/2025
12
15
ms.topic: how-to
13
-
#Customer intent: As a platform engineer, I want dev box users to be able to hibernate their dev boxes as part of my cost management strategy and so that dev box users can resume their work where they left off.
16
+
17
+
#customer intent: As a platform engineer, I want to configure hibernation for dev box definitions so that I can manage resource usage efficiently.
14
18
---
15
19
16
20
# Configure hibernation in Microsoft Dev Box
17
21
18
-
In this article, you learn how to enable and disable hibernation in Microsoft Dev Box. You control hibernation at the dev box image and dev box definition level.
19
-
20
-
Hibernating dev boxes at the end of the workday can help you save a substantial portion of your virtual machine (VM) costs. It eliminates the need for developers to shut down their dev box and lose their open windows and applications.
22
+
Hibernation in Microsoft Dev Box helps you manage cloud development environments efficiently while reducing costs. By enabling hibernation, you can preserve the state of open applications and windows, saving virtual machine (VM) costs without disrupting workflows. This article explains how to configure hibernation at the dev box image and definition levels, automate hibernation schedules, and address compatibility considerations.
21
23
22
-
With the introduction of Dev Box Hibernation (Preview), you can enable this capability on new dev boxes and hibernate and resume them. This feature provides a convenient way to manage your dev boxes while maintaining your work environment.
24
+
With Dev Box Hibernation (Preview), you can enable hibernation on new dev boxes, allowing you to hibernate and resume them seamlessly. This feature simplifies dev box management while maintaining productivity.
23
25
24
-
There are three steps to enable hibernation:
26
+
Follow these three steps to enable hibernation:
25
27
26
28
1. Enable hibernation on your dev box image
27
29
1. Enable hibernation on your dev box definition
@@ -39,7 +41,7 @@ Before you enable hibernation on your dev box, review the following consideratio
39
41
40
42
- You can enable hibernation only on new dev boxes created with hibernation-enabled dev box definitions. You can't enable hibernation on existing dev boxes.
41
43
42
-
- You can hibernate a dev box only by using the Microsoft developer portal, the Azure CLI, PowerShell, SDKs, and the REST API. Hibernating from within the dev box in Windows isn't supported.
44
+
- You can hibernate a dev box using the Microsoft developer portal, the Azure CLI, PowerShell, SDKs, or the REST API. Hibernating from within the dev box in Windows isn't supported.
43
45
44
46
- If you're working with an Azure Marketplace image, we recommend using the Visual Studio for dev box images.
45
47
@@ -51,10 +53,10 @@ Before you enable hibernation on your dev box, review the following consideratio
51
53
52
54
- Hibernation doesn't support hypervisor-protected code integrity (HVCI)/ Memory Integrity features. Dev box disables this feature automatically.
53
55
54
-
- Auto-stop schedules will hibernate Dev Boxes that were created after you enabled hibernation on the associated Dev Box definition. Dev Boxes that were created before you enabled hibernation on the Dev Box definition will continue to shut down.
56
+
- Auto-stop schedules hibernate Dev Boxes created after you enable hibernation on the associated Dev Box definition. Dev Boxes that were created before you enabled hibernation on the Dev Box definition will continue to shut down.
55
57
56
58
> [!NOTE]
57
-
> The functionality to schedule dev boxes to hibernate automatically is available as a public preview. You can read more about the announcement at [Microsoft Dev Box - Auto-Hibernation Schedules Preview](https://aka.ms/devbox/preview/hibernate-on-schedule).
59
+
> The functionality to schedule dev boxes to hibernate automatically is available as a public preview.
58
60
59
61
### Settings not compatible with hibernation
60
62
@@ -70,6 +72,7 @@ The following settings are known to be incompatible with hibernation, and aren't
70
72
1. Under **Memory integrity**, set the toggle to **Off**.
71
73
72
74
After you change this setting, you need to restart the machine.
75
+
After changing this setting, restart the machine.
73
76
74
77
-**Guest Virtual Secure Mode based features without Nested Virtualization enabled**
75
78
@@ -105,6 +108,8 @@ az sig image-version create
105
108
106
109
For more information about creating a custom image, see [Configure a dev box by using Azure VM Image Builder](how-to-customize-devbox-azure-image-builder.md).
107
110
111
+
Learn more about creating a custom image in [Configure a dev box by using Azure VM Image Builder](how-to-customize-devbox-azure-image-builder.md).
112
+
108
113
## Enable hibernation on a dev box definition
109
114
110
115
In Microsoft Dev Box, you can enable hibernation for a new dev box definition when the definition uses a hibernation-enabled custom or Azure Marketplace image. You can also update an existing dev box definition that uses a hibernation-enabled custom or Azure Marketplace image.
@@ -146,16 +151,18 @@ az devcenter admin devbox-definition update
146
151
147
152
### Troubleshooting
148
153
149
-
If you enable hibernation on a Dev Box definition, but the definition reports that hibernation couldn't be enabled:
154
+
If you enable hibernation on a Dev Box definition and the definition reports that hibernation isn't enabled:
150
155
- We recommend using the Visual Studio for Dev Box marketplace images, either directly, or as base images for generating your custom image.
151
-
- The Windows + OS optimizations image contains optimized power settings, and they can't be used with hibernation.
156
+
- The Windows + OS optimizations image contains optimized power settings and isn't compatible with hibernation.
152
157
- If you're using a custom Azure Compute Gallery image, enable hibernation on your Azure Compute Gallery image before enabling hibernation on your Dev Box definition.
153
158
- If hibernation can't be enabled on the definition even after you enable it on your gallery image, your custom image likely has a Windows configuration that prevents hibernation.
154
159
155
-
For more information, see [Settings not compatible with hibernation](how-to-configure-dev-box-hibernation.md#settings-not-compatible-with-hibernation).
160
+
For more information, see [Settings not compatible with hibernation](#settings-not-compatible-with-hibernation).
156
161
157
162
## Disable hibernation on a dev box definition
158
163
164
+
If you encounter issues provisioning new VMs after enabling hibernation on a pool, disable hibernation on the dev box definition.
165
+
159
166
If you have issues provisioning new VMs after you enable hibernation on a pool, you can disable hibernation on the dev box definition. You can also disable hibernation when you want to revert the setting to only shutdown dev boxes.
160
167
161
168
You can disable hibernation on a dev box definition by using the Azure portal or the CLI.
@@ -185,7 +192,6 @@ az devcenter admin devbox-definition update
185
192
186
193
## Related content
187
194
188
-
189
195
-[How to hibernate your dev box](how-to-hibernate-your-dev-box.md)
190
196
-[Configure a dev box by using Azure VM Image Builder](how-to-customize-devbox-azure-image-builder.md)
191
197
-[Azure CLI reference for az devcenter admin devbox-definition](/cli/azure/devcenter/admin/devbox-definition?view=azure-cli-latest&preserve-view=true)
0 commit comments