Forum Discussion
How to troubleshoot Unavailable Status of SessionHost
I am trying to make a Customer's custom image work. I can add it to a hostpool but I can't connect to it.
All prerequisites were done, sysprep ended without error;
Hostpool creation completes without error, virtual machines join domain and register with hostpool; However, I can't connect, what I have seen is that all session hosts report as Unavailable;
Sessions : 0
LastHeartBeat : 01/05/2020 9:36:51
AgentVersion : 1.0.1932.4800
AssignedUser :
OsVersion : 10.0.14393
SxSStackVersion : rdp-sxs200326004
Status : Unavailable
UpdateState : Succeeded
LastUpdateTime :
UpdateErrorMessage :
When I restart RDAgentBootLoader, the status shows as 'available', but in a few seconds (less than 60) it returns to Unvailable;
I can connect through RDP without problems, I have reviewed all RDS policies, I have reinstalled the agents several times (the last ones); I tried to join Version1 hostpool and Spring 2020 Hostpools, but the result is the same, I am stuck.
The image is a Windows 10 ENT in Catalan with 30 or 40 applications installed; I don't know if we has issues with localizations.
Other virtual machines created from Marketplace images in the same subnet work well. There are no NSG, firewall restrictions on WDS services;
I don't know how to continue, I open a support ticket in parallel.
Any ideas?
Martinsd Thanks for opening the support ticket. That is the right approach as we would need to troubleshoot where the failures are coming from by looking at your logs.
- Roop_Kiran_ChevuriMicrosoft
Martinsd Thanks for opening the support ticket. That is the right approach as we would need to troubleshoot where the failures are coming from by looking at your logs.
- BenjaminNiemannCopper Contributor
Hi,
i can relate to this. Created multible tenats via powershell. (Azure template does not work ?).
Each VM regsitered in the host pool successfully. But each VM is unavailable. Tried different VM´s and different Host Pools.
- Eventlog displays an error like this:
"Microsoft.RDInfra.Monitoring.AgentMonitoringService.AgentMonitoringServiceWorker
Fail to set default dimensions Invalid Operation: Fail to set default dimensions, error code is 2147942487.. Error code is 80070057"- I think the SxS Network Stack is broken , because i´m not able to update it (corrupt ressources?).
- qwinsta is not very helpfull.
SESSIONNAME USERNAME ID STATE TYPE
services 0 Disc
console 1 Conn
>rdp-tcp#1 appAdmin 3 Active
31c5ce94259d4... 65536 Listen
rdp-tcp 65537 Listencorrupt installation files? Anyone with a brilliant idea?
- wapereiraCopper ContributorGuys,
Follow the step by step to resolve this situation:
https://docs.microsoft.com/pt-br/azure/virtual-desktop/troubleshoot-vm-configuration
Error: The status filed in Get-AzWvdSessionHost cmdlet shows status as Unavailable
Get-AzWvdSessionHost cmdlet shows status as Unavailable.
Cause: The agent isn't able to update itself to a new version.
Fix: Follow these instructions to manually update the agent.
Download a new version of the agent on the session host VM.
Launch Task Manager and, in the Service Tab, stop the RDAgentBootLoader service.
Run the installer for the new version of the Windows Virtual Desktop Agent.
When prompted for the registration token, remove the entry INVALID_TOKEN and press next (a new token isn't required).
Complete the installation Wizard.
Open Task Manager and start the RDAgentBootLoader service. - ayanbbhattacharyaCopper Contributor
Did you get around an solution to this. My problem is similar, I have 2 tenant created and I have 2 host pools . Everytime I build a VM it's resides as unavailable. The agents were reinstalled , but still the problem persists. -- Ayan
- DrewPetrieCopper Contributor