In my last topic, I did a Windows 365 deployment from a gallery image. In this topic, I’ll want to show you how to create a custom image for your Windows 365 deployment.

At the time of writing this topic, only images from Azure VM gen 1 are supported. But that will change soon and on October 5th, only gen 2 image will be supported. But the steps to create the image are the same, either gen1 or gen 2 image.

Create the Azure VM

For the purpose of this topic, I created a VM from a Windows 10 Enterprise Gen 1 image. If you want to get a gen2 image, just deploy the Azure VM from a gen 2 image. After that, deploy the VM as you usually deploy other Azure VM (virtual network, password, vm size and so on).

Create a virtual machine

Once the VM is created you can connect through RDP or through Azure Bastion to the VM.

Customize your image

Now you are connected to the VM, you can customize it. You can deploy applications, apply some change on the system (time, language and so on). If you forget something, you will be able to redeploy a VM from the image later to bring some modifications.

Once you have finished your customization, we can start a sysprep to generalize the operating system. For that, open a cmd (in administrator context) and navigate to c:\windows\system32\sysprep and run sysprep.exe.

Customize your image

In sysprep, select Enter System Out-of-Box Experience (OOBE), generalize and shutdown.

Once the Azure VM is shutdown, you can create the image.

Create the image

Now that the system is syspreped, we can create an image from the Azure VM you have just configured. In the Azure Portal, navigate to the Azure VM and select Capture.

Create the image

Now, select the resource group where the image will be, the location of the image (in Azure Gallery or not) and choose if you want to delete the Azure VM. Next specify the image name. I called mine Windows10-W365-1.0.0.

Project details

Once the image is created, you should retrieve it in Images pane.

Images pane

Add the image to Windows 365

Now that the image is created, you can open Microsoft Endpoint Manager and navigate to Windows 365. From there, select device images. Click on Add.

Navigate to Windows 365

Specify an image name, a version and select your image.

N.B: Microsoft Endpoint Manager and your Azure Subscription must be in the same tenant.

Add image

After that the image is uploaded; it can take a while.

Device images

Now that the image is ready, you can configure a provisioning policy that uses this image to deploy Windows 365 Cloud PC.

VSAN from StarWind is software-defined storage (SDS) solution created with restricted budgets and maximum output in mind. It pulls close to 100% of IOPS from existing hardware, ensures high uptime and fault tolerance starting with just two nodes. StarWind VSAN is hypervisor and hardware agnostic, allowing you to forget about hardware restrictions and crazy expensive physical shared storage.

Build your infrastructure with off-the-shelf hardware, scale however you like, increase return on investment (ROI) and enjoy Enterprise-grade virtualization features and benefits at SMB price today!

Back to blog
The following two tabs change content below.
Romain Serre
Romain Serre
Senior consultant at Exakis
Romain Serre works in Lyon as a Senior Consultant. He is focused on Microsoft Technology, especially on Hyper-V, System Center, Storage, networking and Cloud OS technology as Microsoft Azure or Azure Stack. He is a MVP and he is certified Microsoft Certified Solution Expert (MCSE Server Infrastructure & Private Cloud), on Hyper-V and on Microsoft Azure (Implementing a Microsoft Azure Solution).