A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
Use Azure Bastion, the VM Run Command feature, or another administrative access method to inspect one host first. Avoid making simultaneous changes to all five VMs.
Run these commands in an elevated PowerShell session:
Check the agent boot loader service
Get-Service RDAgentBootLoader
Check the relevant installed components
Get-CimInstance Win32_Product |
Where-Object {
$_.Name -match 'Remote Desktop|Azure Virtual Desktop'
} |
Select-Object Name, Version, State
Check the RDP and AVD side-by-side listeners
qwinsta.exe
Review recent relevant application events
Get-WinEvent -FilterHashtable @{
LogName = 'Application'
StartTime = (Get-Date).AddHours(-12)
} -ErrorAction SilentlyContinue |
Where-Object {
$_.ProviderName -match
'WVD-Agent|RDAgentBootLoader|MsiInstaller'
} |
Select-Object TimeCreated, ProviderName, Id, LevelDisplayName, Message |
Format-List
AVD session hosts use outbound connections to communicate with the AVD service. In the standard Azure public cloud, TCP 443 is essential for service connectivity; inbound TCP 3389 is not normally required.
On the affected VM, locate and run Microsoft's URL validation tool by running these PowerShell command:
Get-ChildItem "C:\Program Files\Microsoft RDInfra" `
-Filter WVDAgentUrlTool.exe -Recurse
Also check whether the VM can resolve DNS and establish TCP connections to the required endpoints:
Resolve-DnsName login.microsoftonline.com
Test-NetConnection login.microsoftonline.com -Port 443
Test-NetConnection rdbroker.wvdselfhost.microsoft.com -Port 443
I hope this helps.