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
We experienced the same issue today. Came in this morning and 3 session hosts had a status of NoHeartbeat. Restarting the services/session host had no effect. Only way to fix it was to remove the session hosts from their pools and re-add them.
Happened again to a 4th session host this afternoon.
I've raised a ticket with Microsoft and sent them some logs.
DanRobb Thanks!
When you say re-add session hosts (haven't done that before), do you re-install the agent and use New-RdsRegistrationInfo & Export-RdsRegistrationInfo ?
- DanRobbNov 25, 2019Brass Contributor
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
- Nicholas SemenkovichNov 25, 2019Brass Contributor
DanRobb Worked perfectly -- many thanks!
- drjensenmannFeb 19, 2020Copper ContributorPerfect guys! Thanks for this smart solution.