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/virtual-machines/generalize.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Generalize a VM before creating an image
3
-
description: Generalized a VM to remove machine specific information before creating an image.
2
+
title: Deprovision or generalize a VM before creating an image
3
+
description: Generalized or deprovision VM to remove machine specific information before creating an image.
4
4
author: cynthn
5
5
ms.service: virtual-machines
6
6
ms.subservice: imaging
@@ -12,11 +12,14 @@ ms.custom: portal
12
12
13
13
---
14
14
15
-
# Remove machine specific information by generalizing a VM before creating an image
15
+
# Remove machine specific information by deprovisioning or generalizing a VM before creating an image
16
16
17
-
Generalizing a VM is not necessary for creating an image in an [Azure Compute Gallery](shared-image-galleries.md#generalized-and-specialized-images) unless you specifically want to create a generalized image. Generalizing is required when creating a managed image outside of a gallery.
17
+
Generalizing or deprovisioning a VM is not necessary for creating an image in an [Azure Compute Gallery](shared-image-galleries.md#generalized-and-specialized-images) unless you specifically want to create an image that has no machine specific information, like user accounts. Generalizing is still required when creating a managed image outside of a gallery.
18
18
19
-
Generalizing removes machine specific information so the image can be used to create multiple VMs. Once the VM has been generalized, you need to let the platform know so that the boot sequence can be set correctly.
19
+
Generalizing removes machine specific information so the image can be used to create multiple VMs. Once the VM has been generalized or deprovisioned, you need to let the platform know so that the boot sequence can be set correctly.
20
+
21
+
> [!IMPORTANT]
22
+
> Once you mark a VM as `generalized` in Azure, you cannot restart the VM.
20
23
21
24
22
25
## Linux
@@ -91,7 +94,7 @@ To generalize your Windows VM, follow these steps:
91
94
92
95
5. Then change the directory to %windir%\system32\sysprep, and then run:
93
96
```
94
-
sysprep.exe /oobe /generalize /mode:vm /shutdown
97
+
sysprep.exe /oobe /generalize /shutdown
95
98
```
96
99
6. The VM will shut down when Sysprep is finished generalizing the VM. Do not restart the VM.
0 commit comments