Concepts

To create a session host by using a golden image in Microsoft Azure Virtual Desktop, you can follow a simple process. A golden image is a VM (virtual machine) that includes the pre-configured operating system and applications you want to use for your session host deployment. This article will guide you through the steps required to create a session host using a golden image in Azure Virtual Desktop.

Before you begin:

  • Ensure that you have an active Azure subscription.
  • Set up a virtual network in Azure that can be used by your session hosts.
  • Install the necessary software on your golden image VM, such as applications, patches, and security updates.
  • Generalize the golden image VM for deployment.

Step 1: Generalize the golden image VM

Before creating the session host, you need to generalize the golden image VM. Generalization removes the unique information from your VM, making it ready for deployment as a session host image. Follow the steps below to generalize your golden image VM:

Connect to your golden image VM using Remote Desktop or another suitable method.
Open a Command Prompt as an administrator.
Run the following command to sysprep the VM and generalize it:
%windir%\System32\Sysprep\Sysprep.exe /oobe /generalize /shutdown

Step 2: Capture the golden image

After generalizing the golden image VM, you need to capture it as a VHD (Virtual Hard Disk) image. This VHD image can then be used for session host deployment. Follow the steps below to capture the golden image:

In the Azure portal, navigate to the virtual machine blade for your golden image VM.
Under the "Support + troubleshooting" section, select the "Capture" option.
Fill in the details such as the resource group, virtual machine name, and destination storage account.
Click on "Capture".

Step 3: Create an image from the captured VHD

After capturing the VHD, you need to create a custom image from it. This custom image will be used to create session hosts. Follow the steps below to create an image from the captured VHD:

In the Azure portal, navigate to the storage account where you captured the VHD.
Under the "Blob service" section, select the "Containers" option and create a new container to hold the VHD.
Upload the captured VHD to the container.
Navigate to the "Images" section and click on "Create image".
Fill in the details such as the name, resource group, and location for the image.
Specify the VHD file you uploaded to the storage account.
Click on "Create" to create the custom image.

Step 4: Create a host pool and session hosts

Now that you have the custom image, you can create a host pool and session hosts using that image. Follow the steps below to create a host pool and session hosts:

In the Azure portal, navigate to the Azure Virtual Desktop service.
Under the "Host pools" section, click on "Add".
Fill in the details such as the name, resource group, location, and registration info.
Select the custom image you created as the source for the session hosts.
Specify the virtual network and subnet where the session hosts will be deployed.
Configure the scaling settings, session timeout values, and other options as per your requirements.
Click on "Review + create" and then "Create" to create the host pool and session hosts.

Step 5: Test the session host deployment

Once the host pool and session hosts are created, you can test the deployment to ensure that everything is working as expected. Connect to the session hosts and verify that the applications and configurations from the golden image are present.

In conclusion, creating a session host using a golden image in Azure Virtual Desktop involves generalizing the golden image VM, capturing the VHD, creating a custom image from the VHD, and finally deploying the session hosts using the custom image. By following the steps outlined in this article, you can efficiently configure and operate Microsoft Azure Virtual Desktop with session hosts created from a golden image.

Answer the Questions in Comment Section

Which of the following steps are required to create a session host by using a golden image in Azure Virtual Desktop?

a) Create a virtual machine and install the necessary applications.

b) Sysprep the virtual machine and generalize the image.

c) Capture the generalized image as a VHD.

d) Create a new Azure Virtual Desktop host pool.

e) All of the above.

Correct answer: e) All of the above.

What is the purpose of sysprepping a virtual machine when creating a golden image for Azure Virtual Desktop?

a) It removes specific computer information such as the SID, computer name, and driver configurations.

b) It installs the necessary applications and updates on the virtual machine.

c) It creates a backup copy of the virtual machine for future use.

d) It simplifies the deployment process by automating certain configurations.

Correct answer: a) It removes specific computer information such as the SID, computer name, and driver configurations.

When capturing a golden image as a VHD, which Azure service should be used?

a) Azure Blob Storage

b) Azure Virtual Machine Scale Sets

c) Azure File Storage

d) Azure Managed Disks

Correct answer: d) Azure Managed Disks

Which of the following is NOT a recommended best practice when creating a golden image for Azure Virtual Desktop?

a) Include unnecessary applications and components to ensure compatibility with all users.

b) Keep the image up-to-date with the latest Windows updates.

c) Remove personalization and user-specific configurations.

d) Optimize the image for performance and resource usage.

Correct answer: a) Include unnecessary applications and components to ensure compatibility with all users.

After creating a golden image, what is the next step to create a session host in Azure Virtual Desktop?

a) Create a host pool and specify the golden image.

b) Provision a new virtual machine and attach the golden image.

c) Install the Windows Virtual Desktop PowerShell module.

d) Configure network settings for the session host.

Correct answer: a) Create a host pool and specify the golden image.

Can a session host created from a golden image be modified or updated after deployment?

a) Yes, the session host can be modified at any time without any limitations.

b) No, the session host is immutable and cannot be modified once created.

c) Yes, but any modifications or updates will require creating a new golden image.

d) No, the session host can only be modified during the initial provisioning process.

Correct answer: c) Yes, but any modifications or updates will require creating a new golden image.

Which Azure Virtual Desktop role is responsible for brokering user connections and managing user sessions?

a) Remote Desktop Gateway

b) Remote Desktop Web Access

c) Session Host

d) Virtual Desktop Agent

Correct answer: a) Remote Desktop Gateway

True or False: Azure Virtual Desktop supports both persistent and non-persistent user sessions.

Correct answer: True

Which of the following is NOT a recommended practice for optimizing session host performance in Azure Virtual Desktop?

a) Increasing the number of virtual processors assigned to each session host.

b) Using a premium or ultra disk for the session host OS disk.

c) Utilizing Azure Cache for Redis to reduce backend server load.

d) Implementing Azure Network Security Groups to control inbound and outbound traffic.

Correct answer: a) Increasing the number of virtual processors assigned to each session host.

Which Azure service is used for load balancing connections to session hosts in Azure Virtual Desktop?

a) Azure Traffic Manager

b) Azure Load Balancer

c) Azure Application Gateway

d) Azure Front Door

Correct answer: b) Azure Load Balancer

“`

0 0 votes
Article Rating
Subscribe
Notify of
guest
21 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Ivanoel Castro
1 year ago

This blog post is super helpful for understanding the basics of creating a session host using a golden image for the AZ-140 exam!

Sarah Lee
10 months ago

When creating a golden image, is there a specific list of software that should be pre-installed?

Jonathan Thomsen
11 months ago

Great post! Can anyone recommend tagging strategies for organizing Azure resources related to Virtual Desktops?

Hilla Niska
1 year ago

I appreciate the guidance on creating a session host by using a golden image. It really clarified a lot of my doubts.

Jacob Thomsen
9 months ago

I tried following the steps mentioned but ran into issues with sysprep. Any suggestions?

Mercedes Reyes
11 months ago

Does anyone know if you can use a managed image versus a snapshot for creating a session host?

Dúnio Oliveira
1 year ago

Thanks for the information. Appreciate it!

Stefaniya Gnatyuk
8 months ago

Is there any way to automate the creation of a golden image?

21
0
Would love your thoughts, please comment.x
()
x