Experience of Creating A Full WVD Golden Image
This is mostly the fundamental part of the entire provisioning of WVD as, without the Golden Image, it is tough to provision to 10, 100, 1000, or even more of different host pools in WVD.
My previous article here sharing about how to re-image the golden image to help to re-create for different environments or different customers to shorten the steps and ease the customer in terms of deployment.
In order to achieve the baseline of the WVD Golden Image, the following steps can be used for reference on how to configure and create the image into vhd format.
Step 1 : Create a VM with Windows 10 Enterprise Multi-Session
Go to Azure Portal and select Create a Resource
Step 2 : Login to the VM created
Step 3 : Install the common tools like OneDrive, Office and FSLogix
Reference for OneDrive installation.
Download FSLogix here
The following script is the reference for installing OneDrive, Office and FSLogix.
Step 4 : After performing all the installation, you can use the following monitoring tools but it is optional.
First, you need to search Azure Monitor for RDS and Windows Virtual Desktop. It will prompt you to create the Azure Monitor Workspace.
After the workspace created, you need to download the agent here and copy in the VM for the creation of the master image.
Change the Customer ID and Shared Key on the configuration file of Sepago.
To get the customer ID and Shared Key, go to the workspace that you created just now, and select Advanced Settings, then copy the Workspace ID as the Customer ID and Primary Key as the Shared Key.
Go to the directory of the agent and run PowerShell. You can use the following command to install the agent.
Ensure that it is successfully run for the test. Then you can run the following to install
Step 5 : Run sysprep to generalize the VM for imaging.
C:\Windows\System32\Sysprep\Sysprep.exe /generalize /oobe /shutdown
Make sure the VM is fully stopped and deallocated.
Step 6 : Export the Disk to Blob Storage
There are multiple options to capture the image to use in the provisioning of WVD and you can choose to export the disk to blob storage and use the .VHD file for the provisioning of WVD Host Pool.
Click on the VM and select Disks, then click on the OS Disk name, it will bring you to another page and select Disk Export then generate URL. You will need to save the URL for later use.
Run the following to export the disk to Azure Blob Storage. Ensure that you have the Blob Storage created.
After the Blob Storage successfully copy the disk, you can use the vhd for the provisioning in WVD. Select Blob Storage for Virtual Machine settings in the creation of WVD.
Finally, you are done with the Master Image creation and you can now provision WVD with the Golden Image created.
“PS: As I am sharing the experience of creating the master image, the writings are solely my own views and do not express the views or opinions of our employer”