Skip to content

Commit 0be34d2

Browse files
authored
Merge pull request #127640 from alexneyler/alexneyler-patch-1
Update Azure Compute Gallery configuration steps
2 parents d4f2fa5 + 7976728 commit 0be34d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/dev-box/how-to-configure-azure-compute-gallery.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ When you create a generalized VM to capture to an image, the following issues ca
8282
1. Enable the Read/Write cache on the OS disk.
8383
- To verify the cache is enabled, open the Azure portal and navigate to the image. Select **JSON view**, and make sure `properties.storageProfile.osDisk.caching` value is `ReadWrite`.
8484

85-
1. Enable nested virtualization in your base image:
85+
1. Enable nested virtualization in your base image:
8686
- In the UI, open **Turn Windows features on or off** and select **Virtual Machine Platform**.
8787
- Or run the following PowerShell command: `Enable-WindowsOptionalFeature -FeatureName VirtualMachinePlatform -Online`
88+
89+
1. Clean up component store to save disk space and avoid lengthy maintenance tasks that run during provisioning by using the following command: `DISM.exe /Online /Cleanup-Image /StartComponentCleanup`
90+
- For more information, see [Clean Up the WinSxS folder](/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder?view=windows-11&preserve-view=true)
8891

8992
1. Disable the reserved storage state feature in the image by using the following command: `DISM.exe /Online /Set-ReservedStorageState /State:Disabled`.
9093
- For more information, see [DISM Storage reserve command-line options](/windows-hardware/manufacture/desktop/dism-storage-reserve?view=windows-11#set-reservedstoragestate&preserve-view=true).

0 commit comments

Comments
 (0)