Hi,
We have a Remote Desktop Service environment hosted in Azure Virtual Machines, the environment consists of 3 servers - a domain controller, a Remote desktop session host and a RD web gateway.
We are having issues when users access to published remote app via web gateway, the session will be disconnected randomly if you leave the remote app idle for a little while. The disconnections happens very frequent, users can get disconnected for every 2 to 3 minutes. Event log under TerminalServices-LocalSessionManager is showing event ID 40 - Session has been disconnected, reason code 0.
I have done the following however problem still exists:
1.Enable Keep Session alive settings.
2. Disable RDP-timed out.
3. Trusted SSL certificate from authority
4. Disable IPV6
Some analysis i found out:
1. Disconnection only happens to RemoteApp, while RDP session directly to Remote Desktop Session Host is always alive.
2. When multiple users access to RemoteApp concurrently, they get disconnected, but not at the same time.
3. I have continuous ping from Remote Desktop Session Host to Web Gateway server and the packet didnt drops.
Been cracking my head many days to troubleshoot this issues, I hope the experts here can help me. Thanks!!
Regards,
Lih Ping