Forum Discussion
WVD outage / hosts unavailable with status "NoHeartbeat"
- Nov 25, 2019
These are the steps I followed:
1. Remove the session host from the host pool:
Remove-RdsSessionHost -TenantName [TenantName] -HostPoolName [HostPoolName] -Name [SessionHostName] -Force
2. Get the host pool registration token (replace with New-RdsRegistrationInfo if the token has already expired)
Export-RdsRegistrationInfo -TenantName[TenantName] -HostPoolName [HostPoolName] | Select -Expand Token
3. Log into the session host and update the following registry keys:
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDInfraAgent
Name: RegistrationToken
Value: Token Goes Here
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDInfraAgent
Name: IsRegistered
Value: 0
4. Restart the RDAgentBootLoader service
FWIW we've followed the simple steps here without any luck: https://docs.microsoft.com/en-us/azure/virtual-desktop/troubleshoot-vm-configuration#error--windows-virtual-desktop-agent-registry-entry-isregistered-shows-a-value-of-0
- RDAgentBootLoader is running; and nothing happens if we restart it or the machine
- The Event Viewer shows some RD Agent logs; but they all seem to be healthy / info messages -- and are similar to those before we stopped getting heartbeats
- psping to test port 443 to the WVD selfhost url works fine (psping.exe rdbroker.wvdselfhost.microsoft.com:443)
- qwinsta seems to show everything working & awaiting a connection:
PS C:\> qwinsta
SESSIONNAME USERNAME ID STATE TYPE DEVICE
services 0 Disc
console 1 Conn
>rdp-tcp#1 nick 2 Active
31c5ce94259d4... 65536 Listen
rdp-tcp 65537 Listen
rdp-sxs190927002 65538 Listen