Windows Virtual Desktop deployment

Looking for an overview of Windows Virtual Desktop? Take a look at the following YouTube video by Microsoft Mechanics or the overview docs. For this post well be diving straight into the configuration!

Before we get started, youre going to need the following:

  • Azure AD
    • Syncing with AD via Connect or AAD DS
  • An Azure subscription
    • With a virtual network containing or connected to an AD server
  • Windows 10 Enterprise licensing (though E3, E5, M365 E3/E5) or licensing for the OS you are looking to deploy (Win7 and Server also supported)

The reason AD is required is because WVD machines must be domain or hybrid joined. Theres also a list of url requirements which you can find here.

Allow Windows Virtual Desktop to access your Azure AD tenant

Go to: https://rdweb.wvd.microsoft.com/ and log in with your Global Admin account. Select Server App and consent to WVD access and provide the Azure AD Tenant ID (Azure AD -> Properties -> Directory ID).

Windows Virtual Desktop deployment
WVD Consent Page
Windows Virtual Desktop deployment
Directory ID location

Then, navigate back to https://rdweb.wvd.microsoft.com and select Client App, and resubmit the same permissions.

Windows Virtual Desktop deployment
Application confirmation

Back in the Azure Portal, open up Azure Active Directory and select Enterprise Applications. Under all applications, youll now see:

Windows Virtual Desktop deployment
Enterprise Applications for WVD

Select Windows Virtual Desktop > Users and groups > +Add user. Here, we need a user with Global Admin rights who will create the WVD tenant. They will have the TenantCreator role.

Windows Virtual Desktop deployment
Global Admin WVD user

Create the WVD tenant!

This will require PowerShell (Windows PowerShell, not Core), so make sure you have the Az and Microsoft.RDInfra.RDPowerShell modules installed. Once you have those modules installed, run the following commands:

Import-Module -Name Az Import-Module -Name Microsoft.RDInfra.RDPowerShell $brokerurl = "https://rdbroker.wvd.microsoft.com" $aadTenantId = "same tenant ID used to consent" $azureSubscriptionId = "subscription for deployment"
Windows Virtual Desktop deployment
Initializing the WVD PowerShell commands

Then well need to sign-in with the TenantCreator role accoutn:

Add-RdsAccount -DeploymentUrl $brokerurl
Windows Virtual Desktop deployment

And then we create the tenant:

New-RdsTenant -Name "yourWVDTenantNamehere" -AadTenantId $aadTenantId -AzureSubscriptionId $azureSubscriptionId
Windows Virtual Desktop deployment

Add the Azure AD Global Admin and your AD Domain Admin to the WVD RDS Owners Group using the following command:

New-RdsRoleAssignment -SignInName "" -RoleDefinitionName "RDS Contributor" -TenantName "TenantNameFromAbove" -AadTenantId $aadTenantId New-RdsRoleAssignment -SignInName "" -RoleDefinitionName "RDS Contributor" -TenantName "TenantNameFromAbove" -AadTenantId $aadTenantId
Windows Virtual Desktop deployment

Great!

Now that we have a tenant, we need a Host Pool

In the Azure portal, select Create a Resource and search for Windows Virtual Desktop Provision a host pool.

Windows Virtual Desktop deployment

Select it and press Create. Select the settings youd like to use for your WVD environment.

Windows Virtual Desktop deployment
Host pool basics
Windows Virtual Desktop deployment
VM size

For this post well be using a Marketing place image. In an upcoming blog post, well describe how to use a managed or custom image.

Important settings: For AD domain join UPN well need an account that has rights to join devices to your Active Directory domain (not required to be synced up to Azure AD). The virtual network will also need line of site to your domain controller to complete the domain join.

Windows Virtual Desktop deployment
VM settings

Important settings: for Windows Virtual Desktop details, use the tenant group name and tenant name from the PowerShell output from before. The UPN here should be the TenantCreator role.

Windows Virtual Desktop deployment

Great! That will kick off our host pool creation:

Windows Virtual Desktop deployment

Now youve made your first WVD tenant!

Windows Virtual Desktop deployment
WVD deployment completed

How do I access WVD?

You can use either the mobile clients, Windows 10 client, or go straight to any HTML5 browser: http://aka.ms/wvdweb. Once you log in with a user in a host pool, youll see the desktop:

Windows Virtual Desktop deployment
HTML 5 WVD log in