Experience of Creating A Full WVD Golden Image

Create 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

Sample of Azure VM Creation UI

Step 2 : Login to the VM created

Step 3 : Install the common tools like OneDrive, Office and FSLogix

Reference for OneDrive installation.

Download Office

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.

Sample Creation of Azure Monitor for WVD

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.

Sample Advance setting for Workspace

Go to the directory of the agent and run PowerShell. You can use the following command to install the agent.

.\ITPC-LogAnalyticsAgent.exe -test

Ensure that it is successfully run for the test. Then you can run the following to install

.\ITPC-LogAnalyticsAgent.exe -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.

Generate URL for Disk Export

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.

Sample Blob Storage Image

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”



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store