CA-Microsoft-WVD_ARM-Workshop

Start / Create custom WVD image

Create custom WVD image

In this step, you will create a custom WVD image containing FSLogix, Acrobat Reader & Visual Studio Code pre-installed. In this way, your newly deployed WVD Sessionhosts will already have this software available.

We will do this in 4 sections:

  • Deploy a new VM using Windows 10 Enterprise Multi Session from the Marketplace
  • Connect to new VM & install the needed software
  • Sysprep the VM
  • Create an Azure Managed Image from the VM

Create new VM

  1. Sign in on the Azure Portal with your credentials.

  2. Click on Resource Groups & create a new Resource Group in west-europe:
    • wvd-workshop-tempimagevm-rg
      Create Resource Group
  3. Open the wvd-workshop-tempimagevm-rg Resource Group & click on Add.
    Add Resource

  4. Search for Microsoft Windows 10 and hit Enter
    Search for Windows 10

  5. Select the Windows 10 Version you want: with or without Office 365 ProPlus & click on Create

    IMPORTANT!
    Select a Windows 10 Enterprise multi-session from the list!

Select Windows 10 version
___

Select Windows 10 version

  1. Fill in the wizard fields to …
    • Create a new VM from the Marketplace
    • Select Premium SSD disk
    • Create a new (temporary) VNET & Subnet
    • Disable Boot Diagnostics & Security Center (if requested)

Select Windows 10 version


Select Windows 10 version


Select Windows 10 version


Select Windows 10 version

Connect to new VM & install software

  1. When the Deployment is finished, you go to the Resource Group and open the newly created VM.
    Open Image VM

  2. Connect to the Image VM using the Connect button, or by using the Public IP in MSTSC.EXE
    In my example, this would be
    mstsc /v:40.115.5.174
    

    Connect to Image VM

  3. Install all the software you want available in your image.
    In our example, we will install FSLogix, Acrobat Reader & Visual Studio Code
    You can find the System installers here:

Software overview

Sysprep the VM

  1. Open a Command Prompt window as an administrator. Change the directory to %windir%\system32\sysprep, and then run sysprep.exe.

  2. In the System Preparation Tool dialog box, select Enter System Out-of-Box Experience (OOBE) and select the Generalize check box.

  3. For Shutdown Options, select Shutdown.

  4. Select OK.
    Sysprep


Sysprep running

Create an Azure Managed Image

  1. Open the Azure portal.

  2. Select the Image VM from the Virtual Machine list.

  3. In the Virtual machine page for the VM, on the upper menu, select Capture. Capture VM

  4. Complete the Capture Wizard
    • For Name, enter “MyCustomWVDManagedImage”.
    • For Resource group, select the wvd-workshop-infra-rg resource group from the drop-down list.
    • Select Automatically delete this virtual machine after creating the image.
    • Select Off for Zone resiliency.
    • Type in the Image VM name (when requested)
    • Click on Create to create the image.
      Capture VM Wizard
  5. After the image is created, you can find it as an Azure Managed Image in the resource group.
    Azure Managed Image

  6. Delete the wvd-workshop-tempimagevm-rg Resource Group, as this is no longer needed
    Delete Temp RG