Skip to content

Commit e43068f

Browse files
Merge pull request #246806 from cynthn/patch-95
Update prepare-for-upload-vhd-image.md
2 parents ca24dc7 + cd39864 commit e43068f

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

articles/virtual-machines/generalize.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,6 @@ To generalize your Windows VM, follow these steps:
108108
6. The VM will shut down when Sysprep is finished generalizing the VM. Do not restart the VM.
109109

110110

111-
112-
> [!TIP]
113-
> **Optional** Use [DISM](/windows-hardware/manufacture/desktop/dism-optimize-image-command-line-options) to optimize your image and reduce your VM's first boot time.
114-
>
115-
> To optimize your image, mount your VHD by double-clicking on it in Windows explorer, and then run DISM with the `/optimize-image` parameter.
116-
>
117-
> ```cmd
118-
> DISM /image:D:\ /optimize-image /boot
119-
> ```
120-
> Where D: is the mounted VHD's path.
121-
>
122-
> Running `DISM /optimize-image` should be the last modification you make to your VHD. If you make any changes to your VHD prior to deployment, you'll have to run `DISM /optimize-image` again.
123-
124111
Once Sysprep has finished, set the status of the virtual machine to **Generalized**.
125112

126113
```azurepowershell-interactive

articles/virtual-machines/windows/prepare-for-upload-vhd-image.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,18 @@ configured them.
647647
interfere and block the Windows Provisioning Agent scripts executed when you deploy a new VM
648648
from your image.
649649

650+
> [!TIP]
651+
> **Optional** Use [DISM](/windows-hardware/manufacture/desktop/dism-optimize-image-command-line-options) to optimize your image and reduce your VM's first boot time.
652+
>
653+
> To optimize your image, mount your VHD by double-clicking on it in Windows explorer, and then run DISM with the `/optimize-image` parameter.
654+
>
655+
> ```cmd
656+
> DISM /image:D:\ /optimize-image /boot
657+
> ```
658+
> Where D: is the mounted VHD's path.
659+
>
660+
> Running `DISM /optimize-image` should be the last modification you make to your VHD. If you make any changes to your VHD prior to deployment, you'll have to run `DISM /optimize-image` again.
661+
650662
## Next steps
651663
652664
- [Upload a Windows VM image to Azure for Resource Manager deployments](upload-generalized-managed.md)

0 commit comments

Comments
 (0)