Skip to content

Commit a6b567d

Browse files
Merge pull request #232262 from cynthn/patch-58
Update generalize.md - adding "deprovision" as a keyword and removing switch for Sysprep that is causing issues.
2 parents 3e85247 + 6d221fa commit a6b567d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

articles/virtual-machines/generalize.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
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.
44
author: cynthn
55
ms.service: virtual-machines
66
ms.subservice: imaging
@@ -12,11 +12,14 @@ ms.custom: portal
1212

1313
---
1414

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
1616

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

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.
2023
2124

2225
## Linux
@@ -91,7 +94,7 @@ To generalize your Windows VM, follow these steps:
9194

9295
5. Then change the directory to %windir%\system32\sysprep, and then run:
9396
```
94-
sysprep.exe /oobe /generalize /mode:vm /shutdown
97+
sysprep.exe /oobe /generalize /shutdown
9598
```
9699
6. The VM will shut down when Sysprep is finished generalizing the VM. Do not restart the VM.
97100

0 commit comments

Comments
 (0)