We couldn't connect to the gateway because of an error. If this keeps happening, ask your admin or tech support for help.

RafaelMiranda-0812 0 Reputation points
2026-01-23T06:05:56.7333333+00:00

host pool not working and cant connect to sessions, likely permissions

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Himanshu Shekhar 3,375 Reputation points Microsoft External Staff Moderator
    2026-01-23T08:49:14.42+00:00

    Hello @Rafael Miranda

    Based on the issue shared The "couldn't connect to the gateway" error in Azure Virtual Desktop (AVD) host pools often due to from session host agent issues, network blocks to gateway URLs, or insufficient user permissions like missing Virtual Machine User Login role.

    This prevents connections to sessions, showing host pools as non-functional. - https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-desktop/troubleshoot-vm-configuration

    Common cause based on the issue as you have added:

    1. RDAgentBootLoader or Remote Desktop Agent Loader stopped please check Event Viewer (Application log) for ID 3703 ("RD Gateway Url: is not accessible").
    2. Firewall/proxy blocks required AVD gateway URLs (e.g., *.wvd.microsoft.com) so here unblock TCP 443 outbound.
    3. It lacks "Virtual Machine User Login" role on VMs/resource group or not assigned to host pool application group; for Entra-joined VMs, add targetisaadjoined:i:1 RDP property.
    4. Expired token or agent not registered (IsRegistered=0 in registry) so, session hosts show "Unavailable".

    We can suggest:

    1. Please Verify NSG/Firewall allows AVD URLs and run Required URL Check tool.
    2. Restart RDAgentBootLoader service and generate new registration key if needed.
    3. Assign RBAC roles via Azure portal - Virtual Machine User Login at resource group scope.
    4. Check host pool session hosts status and remove or re-add if stuck.

    ​Microsoft Documentation:

    1. Troubleshoot AVD Agent Issues – Here it covers gateway errors (3703), registration, services.
    2. Troubleshoot Session Host VMs – Agent installs, domain join, security errors.
    3. AVD Network Requirements.

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.