how to fix Error code 0x807

Miguel Smith 20 Reputation points
2026-07-21T20:06:33.5833333+00:00

Your session ended because of an error. If this keeps happening, contact your network administrator for assistance.

Error code: 0x807

Azure Virtual Desktop
Azure Virtual Desktop

A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.

0 comments No comments

Answer accepted by question author
VarunTha 15,090 Reputation points Microsoft External Staff Moderator
2026-07-27T22:56:01.94+00:00

Hello Miguel Smith,
The issue was caused by missing VM sign-in permission for users on the Microsoft Entra joined AVD session hosts.

We can resolve it using these steps:

  1. Open the Azure portal and go to the resource group containing the AVD session-host VMs.
  2. Select Access control (IAM).
  3. Select Add > Add role assignment.
  4. Select the Virtual Machine User Login role.
  5. Assign the role to the security group containing all authorised AVD users, or add the required users individually.
  6. Keep the assignment at the resource-group scope so that it applies to all AVD session-host VMs in that resource group.
  7. Sign out of the AVD web client or Windows App, sign back in, and test the connection again.

The Desktop Virtualisation User role makes the desktop or RemoteApp visible to the user. The Virtual Machine User Login role allows the user to sign in to the Microsoft Entra joined Windows session host where the desktop or application runs. Microsoft documents this VM login role as a requirement for users connecting to Microsoft Entra joined AVD session hosts.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Miguel Smith 20 Reputation points
    2026-07-22T15:12:34.58+00:00

    Please note pasted image:

    Was this answer helpful?

    0 comments No comments

  2. Alex Burlachenko 25,115 Reputation points MVP Volunteer Moderator
    2026-07-22T10:08:37.1533333+00:00

    Miguel Smith hi & thx for sharing urs issue here at Q&A portal,

    Error 0x807 is too generic to identify the cause by itself. It usually means the client session was unexpectedly terminated during connection or sign-in. test the same user and desktop from another network and from the Windows App web client. Also update or reset the Windows App and refresh the subscribed workspace. If only one device fails, the issue is probably local to that client, VPN, proxy, or cached credentials.

    If multiple users or devices are affected, check whether the session host is Available, whether the AVD Agent and Boot Loader services are running, and review the AVD connection diagnostics around the failure timestamp.

    Please share the extended error code, timestamp, client OS, Windows App version, and whether other users can connect. Without those details, 0x807 alone isn’t enough to recommend a specific fix.

    rgds,

    Alex

    &

    If my answer was helpful pls mark it and additional thx if u follow me at Q&A portal

    and at my blog https://ctrlaltdel.blog/

     

    Was this answer helpful?

    0 comments No comments

  3. Christos Panagiotidis 3,546 Reputation points
    2026-07-22T07:42:14.15+00:00

    Error 0x807 indicates that the remote session ended, but it does not identify a single root cause. Because this is tagged Azure Virtual Desktop, first confirm whether the failure affects one user, one device, or every user connecting to the same session host. In the Azure portal, verify that the host is powered on and shows Available in the host pool, with the Azure Virtual Desktop agent healthy. On the host, review Event Viewer under Windows Logs > Application for WVD-Agent, WVD-Agent-Updater, RDAgentBootLoader, and MsiInstaller events at the failure time. Then run the Azure Virtual Desktop required-URL check and confirm that DNS, proxy, and firewall rules allow the documented broker, gateway, and WebSocket endpoints. Test from the web client or another network to isolate the client path. If the host remains unavailable or agent events show registration or endpoint errors, repair or re-register the agent based on that specific event.

    Was this answer helpful?

    0 comments No comments

  4. Dio Xavier 293.3K Reputation points Volunteer Moderator
    2026-07-21T21:46:42.13+00:00

    Hello,

    Welcome to the Microsoft Azure Community.

    Good afternoon. Thank you for contacting us and detailing your scenario. To provide a more accurate response, could you please let us know which Azure page or service this is happening on?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.