Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Task 02 - Setup an image (90 minutes)

  1. In the Azure Portal create a new Azure Compute Gallery

    Azure Compute Gallery

  2. Configure the following properties. On the Sharing Tab you can keep the defaults. Create the Gallery. ![Compute Gallery Configuration]../Media/ComputerGalleryBasics.png)
  3. Now creating a Windows 11 VM

    Create a Virtual Machine

  4. For the settings
    • Basics:
      • Same Resource Group you’ve been using
      • Virtual Machine name: DevMPPTeamMessagingImage
      • Availability options: No infrastructure redundancy required
      • Security type: Trusted launch virtual machines
      • Images: Windows 11 Enterprise, version 22H2 - x64 Gen2

      Make sure you select enterprise and not pro. Pro is not supported for Dev Box.

      • Size: Standard_D4s_v5
      • Username: DevBoxAdmin
      • Password: something you’ll remember
      • Licensing: Confirm Virtual Machine Basics
    • Disks:
      • Do nothing
    • Networking:
      • Make sure it’s connected to the network you created in the last task
      • Check “Delete public IP and NIC when a VM is deleted”:
      • Uncheck “Enable accelerated network” Virtual Machine Networking
    • Management, Monitoring, Advanced
      • Do nothing and take the defaults
    • Create the VM
  5. Configure the network to only allow RDP access form you IP address
    • Under the VM Network settings click RDP in the Network Security Group. Set Source to “My IP address” and select Save VM Network RDP
  6. RDP Into the box and download/install the software.
    1. These are all pretty straight forward, just make sure they all get installed for all users
    2. Before running sysprep, shut down the VM and take a snapshot. Once you perform a sysprep you can’t start the VM back up again without using this snapshot.
    3. An error with Docker after the install is fine, just ignore it and do the sysprep
  7. After the Windows machine shuts down due to sysprep, navigate to your virtual machine in Azure.
  8. Select Capture

    Capture the VM Image

  9. Select the Azure computer gallery you created in Task 1 Select VM Image Gallery
  10. Create a new Target VM image definition New VM Image Definition
  11. Set the Version number to 1.0.0
  12. Set Default storage SKU to Premium SSD LRS
  13. The configuration should look like this. Then create the image VM Image Creation

    This step can take some time to complete. If it hasn’t completely after about 20 minute, students can proceed to Exercise 2 and use their own machines. They can check on that status periodically, and once it completes, move on to Task 3. It’s OK to use their own machine for Day 1 and use the Dev Box on day 2.