AVD Add New Session Hosts to Existing Host Pool | Registration Key

Let’s learn today, how to add new session hosts to the existing host pool. This post is applicable only for the Azure Virtual Desktop spring 2020 release (a.k.a WVD v2). The Spring 2020 update uses the Azure Resource Manager (ARM) Windows Virtual Desktop objects.

Host sessions are nothing but virtual machines part of the host pool. I’m planning to add new two-session hosts to host pools using Azure Virtual Desktop’s new experience (a.k.a AVD).

NOTE! – Learn more about AVD v2 ARM model architecture.

Add New Session Host

Let’s check how to add a new session host to the existing AVD host pool.

Patch My PC
  • Login to portal.azure.com
  • Search with “Azure Virtual Desktop“.
  • Click on the Azure Virtual Desktop icon as shown in the below screenshot.
  • Click on Session Host node 👉 Select Host Pool.
  • Click on the button Session Host.
  • Click +Add.
WVD Add New Session Hosts to Existing Host Pool WVD V2 New Admin Experience
AVD Add New Session Hosts to Existing Host Pool AVD V2 New Admin Experience
  • Use a registration key to add additional virtual machines to this host pool. More details here.
    • Expiration date
    • No registration key has been generated for this host pool

Create a Registration key for Host Pool

  • You can use the Generate new registration key from the Azure portal AVD application itself.
  • Select the Expiration Date 👉 07/07/2020.
  • Select the Time 👉 12:00:00 AM.
  • Click on OK to generate the registration Key.
Generate new registration key - WVD Add New Session Hosts to Existing Host Pool WVD V2 New Admin Experience
Generate new registration keyAVD Add New Session Hosts to Existing Host Pool WVD V2 New Admin Experience

If you want to save the registration key, click on the Download button.

Click on + Add button to create a new session host VM.

You don’t have the option to change Subscription, Resource Group, Host Pool Name, Location, and Host Pool Type. These options are already selected for the host pool.

Click on the next button to continue.

Adaptiva
WVD Add New Session Hosts to Existing Host Pool WVD V2 New Admin Experience
AVD Add New Session Hosts to Existing Host Pool WVD V2 New Admin Experience

Virtual Machine Configuration

  • You don’t have the option to change:
    • Name Prefix (prefix name of the VM), Virtual Machine Size (Azure VM template), Image Type, Image, OS Disk Type, Use Managed Disks.

You have the option to select and change:

Resource Group, Virtual Machine Location (Azure Region), and Number of VMs for new session hosts.

Select Resource Group, Virtual Machine Location (Azure Region), and Number of VMs
Select Resource Group, Virtual Machine Location (Azure Region), and Number of VMs

Network & Security Configurations

I normally keep all the following settings the same for all the VMs in the host pools. More details following in the following post 👉 AVD v2 Admin Experience Create New Host Pool | Workspace | Session Host.

  • Select the already created Virtual Network 👉 AVD_PoC_VLAN1.
  • Select the Subnet from the drop-down 👉 Default.
  • Select Public IP 👉 NO.
  • Select Network Security Group (NSG) as per your organization standard 👉 Basic.
  • Select Public inbound ports option 👉 No
  • Specify domain or unit to YES
    • Select yes to join virtual machines to a specific domain or organization unit (OU).
    • Select no to not join the virtual machines to an OU.
      • If you select no, the domain name will use the suffix of the Active Directory domain to join UPN by default. For example, the user “[email protected]” would get the default domain name “contoso.com”.
  • Enter the Domain name for Domain to join – HTMD.Local (where HTMD.local is my domain name).
  • Enter the OU path 👉 OU=WVD,OU=AAA UK,OU=Org,DC=HTMD,DC=local
  • Enter the AD Domain join UPN 👉 [email protected].
  • Enter the password 👉 ********
  • Click on the NEXT Tags button.
  • Click on the NEXT Review + Create.
WVD Add New Session Hosts to Existing Host Pool WVD V2 New Admin Experience
AVD Add New Session Hosts to Existing Host Pool WVD V2 New Admin Experience
  • Click on the Create button after the validation passed the banner message.
WVD Add New Session Hosts to Existing Host Pool WVD V2 New Admin Experience
AVD Add New Session Hosts to Existing Host Pool WVD V2 New Admin Experience

Deployment in Progress AVD v2 – Session Host

Deployment in progress 👉 Additional session hosts are being added.

Check the status or progress - Create Session Hosts
Check the status or progress – Create Session Hosts

Results

The new two Session hosts (VMs) are added to the host pool.

Check the status or progress - Create Session Hosts
Check the status or progress – Create Session Hosts

Personal Desktop Assignment

Update-AzWvdSessionHost -HostPoolName $hostpoolname -Name $sessionhostname -ResourceGroupName $resourcegroupname -AssignedUser $userupn

Resources

3 thoughts on “AVD Add New Session Hosts to Existing Host Pool | Registration Key”

  1. Hi Anoop,
    I have created the AVD in production and it’s working absolutely fine. The session hosts are joined to the domains.
    However, I wish to have users connecting to specific host on every login. Is this possible via the above CLI?
    Also correct me if I’m wrong, this goes in the Advances option of RDP properties.

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.