The Azure Virtual Desktop Series Part 2

Hello everyone, this is the second part of the basics and best practices of Azure Virtual Desktop. Now we are going to configure the hostpool. The most chosen type of desktop in Azure Virtual Desktop is a pooled desktop. So we start with this type of hostpool. When you create a pooled hostpool, it is also possible to setup Remote Apps.

Creating a host pool

We are going to create the hostpool with the Azure portal.

  1. Sign in to the Azure portal
  1. In the search bar on the top, type Azure Virtual Desktop and select this entry.
  1. Select Host Pools, then select Create.
  1. On the Basics tab, complete the following information.
SettingValue
SubscriptionSelect the subscription for Azure Virtual Desktop
Resource groupSelect an existing resource group or select Create New. – M2C-RG-AVD-01
Host pool nameEnter a name for the host pool – M2C-HP-PL-01
LocationSelect the Azure region where your host pool will be deployed. – We select West-Europe, because this region is the closest for me. We want to have no extra latency, when selecting the wrong region.
Validation environmentSelect Yes or No to create a host pool that is used as a validation environment. – We select No for this setup
Preferred app group typeSelect the preferred application group type for the host pool: Desktop or Remote App. – We select the Desktop as group type.
Host pool typePersonal or Pooled.

We select Pooled, but two extra options need to be configured for the host pool.

Load balancing algorithm: Breadth-first for session spreading on all session hosts for the best performance or choose Depth-first for less performance but session hosts are filled up to use the Max session limit before an user goes to the next session host, but this setting saves more money in Azure.

We choose Breadth-first, because users need to have a good performance when using a full desktop.

The setting Max session limit is used to give every session host a maximum concurrent user limit. This can be different for every Azure VM sizing.
Choosing the right VM size is crucial for the good performance of Azure Virtual Desktop. Please check the following link for the guidance of sizing with different user types.
  1. The next tab going to create the Virtual Machines. First we start with the settings base settings for the Session Hosts.
SettingValue
Add Azure virtual machinesSelect Yes to get more options.
Resource groupSelects the resource group created in the Basics tab.
Name prefixCreates the prefix for every session host: M2C-AVD-PL
Virtual Machine LocationWe choose West-Europe, because this is the closest location for less latency.
Availability zonesHere we can select availability zones for redundancy of the session hosts. When you select Availability zones as option, you can create three zones for the session hosts. For this blog we choose No infrastructure redundancy required.
Security typeThis option sets the security of the session hosts, when using the Confidential virtual machines, only certain types of VM sizing are possible. We are choosing Trusted launch virtual machines for more flexible VM sizing options and good security.
Secure BootRecommended setting for extra security on your session hosts. protection against bootkits, root kits and kernel level malware.
vTPMRecommended setting for extra security on your session hosts, TPM 2.0 compliant and validates boot integrity apart from securely storing keys and secrets.
Integrity monitoringRecommended setting for extra security on your session hosts. Integrity monitoring enables cryptographic attestation and verification of VM boot integrity along with monitoring alerts if the VM didn’t boot because attestation failed with the defined baseline
ImageChoosing Windows 11 Enterprise multi-session (Latest version available)
Virtual Machine SizeStandard D2s V3 (Choose the best option for your environment)
Number of VMs2 (Choose the best option for your environment)
OS Disk TypeStandard SSD (Users do not need the performance of Premium disks, when they get their profiles from FSLogix)
Boot diagnosticsEnable with managed storage account (We choose the recommended setting)
  1. In the same tab we go to Network and security settings.
Virtual NetworkChoose the previously created VNET from the first part of this blog post series: M2C-AVD-VNET
SubnetChoose the subnets that are available in this Vnet: M2C-VNET-SN-AVD
Network Security Group typeFor this blog we choose Basic. If you have a NSG specially created for AVD. You can use that with the option Advanced or choose None when you do not need an NSG.
Public inbound portsRecommended setting is No. We do not want extra exposure of the AVD environment on the internet.
  1. In the same tab we go to the Domain to join settings.
Join type of Session hostsActive Directory (For this blog)
AD domain join UPNdomainjoin@m2c.local
PasswordPlease fill in the password of the on-premise account that has the appropriate rights.
Specify domain or unitWe will choose Yes for this blog
Domain to joinm2c.local
Organizational Unit PathPlease use the DN trough the attribute tab of your Active Directory to get this string like this: OU=Pooled Desktop,OU=AVD,OU=Devices,OU=M2C,DC=m2c,DC=local
  1. Here we configure the local admin user of the session hosts.
User nameSpecify account name for local admin access
PasswordPlease fill in the password
Confirm PasswordConfirm password
  1. Now we can click Next en go to the Workspace settings, this step is optional. Here you can simply create a workspace for the hostpool. There can be more workspaces to divide desktops or remote apps for certain groups.
  1. The next tab is the Advanced tab and this tab is optional, but recommended. To get logging for your AVD environment, it is recommended to use a separate Log Analytics Workspace container and to archive logs to a storage account for troubleshooting purposes which require more history data.
It is possible to setup a Log Analytics Workspace container and a storage account in a new window from your browser. If you switch back and fourth in tabs it will be visible for usage.
  1. The last configuration tab is the Tags option. This is very important, because here you can separate your resources with the tags. Maybe a customer want their billing to be only data from Azure Virtual Desktop, or scripts can use tags to manage the environment.
  1. Everything is ready to configure the AVD environment. Click on Review + Create and when the validation is passed your can click on Create.
  1. Now that the deployment is a success, the AVD environment is available and ready for the next steps of configuration. You can click on Go to resource to get to your created Hostpool.

The AVD environment is now setup as base environment and still needs some extra configuration to make the connection for the users possible. This will be discussed in the Azure Virtual Desktop Series in Part 3.

Leave a reply

Your email address will not be published. Required fields are marked *