Connection Failed User Has Valid Session But Rdsh Is Unhealthy

Microsoft

We tried to auto shutdown some host VMs during off-hours. But we found that user will still keep in the same session host VM which has been shutdown and he cannot connect to WVD anymore. (There is another VM still running that he can connect to it) And the error log as below:

  • Error Code:-21462338088
  • Error Code Symbolic: Connection Failed User Has Valid Session But Rdsh Is Unhealthy
  • Error Operation: Lookup Session Host Pool
  • Error Message:SessionHost = ≤WvdHost-14.XXX.com≥ is not healthy.

It seems that session will still keep when host VM has been shutdown.

1. How to automatically remove all the user sessions when VM has been shutdown? Instead of using PowerShell to remove individual session by Invoke-RdsUserSessionLogoff.

https://docs.microsoft.com/en-us/powershell/module/windowsvirtualdesktop/Invoke-RdsUserSessionLogoff...

2. Or how to set the idle time-out in WVD? 

 
 
2 Replies

@JuliaWu 

 

I got the same issue and behind my WVD in Azure is VMSS environment. 

 

Regards, 

Iliya

I'm having the same issue which is really holding up our deployment. Did you ever find a fix for this?