Skip to content

Commit e45f408

Browse files
authored
Update prepare-for-upload-vhd-image.md
https://github.com/MicrosoftDocs/azure-docs/issues/112925
1 parent 8303407 commit e45f408

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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)