in

How to Set Azure Virtual Desktop Session Host Firewall Rules

Learn the Azure Virtual Desktop session host firewall rules agents need, how to allow outbound traffic, and how to verify connectivity.

Keeping Azure Virtual Desktop agents connected starts with the right network access. If firewall rules block required traffic, session hosts may struggle to register, communicate with Azure services, or provide a reliable user experience.

This guide explains how to configure Azure Virtual Desktop session host firewall rules for agent connectivity, including the key traffic to allow and practical steps for checking your setup. With the right rules in place, you can help your session hosts connect smoothly and keep users productive.

Understand Azure Virtual Desktop session host firewall rules

A firewall rule is useful only when it matches the way traffic actually travels. I start by tracing the connection between the user, the session host, and the Azure service; that makes it easier to allow what’s needed without opening unnecessary access.

First, it helps to distinguish the user’s connection from the host’s connection to the service. They follow different paths, and that difference shapes the firewall design.

How session hosts connect to Azure Virtual Desktop

In a standard deployment, a user’s client connects to an Azure Virtual Desktop gateway, rather than opening a direct inbound connection to the session host. The host initiates its own connection to the service, and the gateway relays the session traffic over that established path. This reverse-connect model is why session hosts generally don’t need open inbound RDP ports.

When I review a network, I check the firewall, network security group (NSG), and any intermediary appliance for rules that could block the host’s outbound connection. A rule in just one layer may not be enough if another layer still denies the traffic.

With the connection path clear, the next step is to identify which communications the agent needs to maintain. The precise endpoint list can vary with the Azure cloud and enabled features.

Required agent traffic and connection flow

The Azure Virtual Desktop agent and related components need to reach service endpoints to register the host, receive connection information, and report status. In most deployments, this means allowing outbound TCP 443 to the required Azure Virtual Desktop URLs. DNS resolution must also work, or the host may be unable to locate those endpoints.

I use Microsoft’s Azure Virtual Desktop required URL list as the source of truth, then check it against the organization’s proxy and filtering rules. Depending on the environment, hosts may also need access to services such as Windows Update, identity, monitoring, or licensing. Don’t assume one allow rule covers every dependency.

  • Allow the documented service URLs and ports for the deployment’s Azure cloud.
  • Check that proxy inspection or authentication won’t interrupt the agent’s service connection.
  • Revisit the rules when enabling features or changing network controls.

These requirements point to a practical security boundary: permit necessary outbound communication, while keeping unsolicited inbound access closed. Optional connection methods can introduce separate rules, so treat them as deliberate design choices.

Outbound access, inbound access, and security boundaries

For standard reverse-connect sessions, I keep inbound access to session hosts restricted and allow only the outbound traffic documented for the required services. Avoid exposing RDP directly to the internet; it isn’t needed for the standard connection flow.

If you enable RDP Shortpath for direct UDP connectivity, its network requirements differ from reverse connect. Review the applicable RDP Shortpath guidance and allow only the required traffic between intended networks. In this way, Azure Virtual Desktop session host firewall rules can support connectivity while preserving a clear boundary around each host.

Identify the endpoints and ports

A connection can fail even when the port is open if the destination is missing from an allowlist. I map the required destinations first, then match them to the controls used in the network.

Start by separating the agent’s service dependencies from other traffic a session host may need. This keeps the rules focused and makes later troubleshooting easier.

Core service endpoints for agent connectivity

The agent must reach Azure Virtual Desktop services to register, maintain its connection, and receive session information. Microsoft updates its endpoint guidance as services change, so I use the Azure Virtual Desktop required URL list rather than relying on a static list copied from an old deployment.

When reviewing that list, I group destinations by purpose, such as broker and gateway connectivity, authentication, and diagnostics. I also verify that the list matches the deployment’s Azure cloud; public Azure and sovereign clouds may use different endpoints.

  • Allow the documented Azure Virtual Desktop service URLs for the host’s cloud.
  • Check DNS resolution for each required hostname from the session host network.
  • Keep separate rules for optional services, such as updates or monitoring, where practical.

Once the destinations are known, confirm that the rule permits the right protocol as well as the right destination. A broad port opening is not a substitute for a complete endpoint match.

Required ports and protocol considerations

For standard agent connectivity, the central requirement is generally outbound TCP 443 to the documented service endpoints. The session host initiates this traffic; standard reverse-connect sessions do not require unsolicited inbound RDP access.

I check every enforcement point, including the host firewall, NSG, proxy, and network appliance. If RDP Shortpath is enabled, its UDP requirements are a separate consideration: I allow the documented traffic only between the intended networks, rather than treating it as part of the agent’s TCP 443 rule.

In larger environments, the same rules may be enforced in several places or maintained by different teams. Agreeing on how endpoints are represented helps prevent one layer from silently blocking traffic allowed by another.

Regional endpoints, proxies, and network allowlists

Some service destinations are regional or may change as Microsoft updates the platform. I avoid assuming that a single region-specific hostname will cover every host pool, and I review the official endpoint list when expanding to another region or cloud.

Where supported, use a maintained service tag or FQDN-based rule instead of manually entering changing IP addresses. If traffic passes through a proxy, confirm that it permits the required destinations without introducing authentication or inspection behavior that interrupts the agent’s connection. These checks keep Azure Virtual Desktop session host firewall rules precise and easier to maintain.

Configure and verify the rules

Once the destinations and traffic paths are mapped, it’s time to turn that plan into rules you can test. I make changes in small steps so it’s clear which control is helping—or blocking—the connection.

Start with the host itself, then check the network controls that sit between it and Azure. This layered approach helps avoid a rule that looks correct on one device but is denied elsewhere.

Set rules in Windows Firewall and network controls

On session hosts, I first check whether Windows Defender Firewall has a restrictive outbound policy. If outbound traffic is allowed by default, an extra host-level allow rule may not be necessary. If it’s blocked by policy, create a narrowly scoped outbound rule for TCP 443 and apply the required destination restrictions using controls that support the organization’s endpoint list.

For example, I review the host firewall alongside NSGs, proxies, and central firewalls, confirming that each layer permits the same required destinations. Where a network control supports FQDN rules or a maintained service definition, I prefer that over manually maintained IP addresses. I also check whether proxy authentication or TLS inspection could interrupt the agent’s connection.

  • Keep unsolicited inbound access restricted; standard reverse-connect sessions don’t require open inbound RDP.
  • Document the rule owner, scope, and reason for each exception.
  • Separate optional traffic, such as Shortpath, from the agent’s baseline rules.

After applying a change, I verify the path from the session host rather than relying only on a firewall’s saved configuration. These checks help distinguish a name-resolution issue from a blocked connection.

Validate Azure Virtual Desktop session host firewall rules

Test DNS and TCP reachability to representative hostnames from Microsoft’s current endpoint list. For a quick TCP check, PowerShell’s Test-NetConnection can test a hostname on port 443; a successful result confirms that the host can reach that destination, though it doesn’t prove every agent dependency is available.

Then check the session host’s registration and status in the Azure portal. I compare results across hosts in the same subnet or host pool: if only one fails, the cause may be local policy or configuration; if several fail together, I look at shared network controls.

If registration or connection health remains poor, use logs and rule records to narrow the search. I work from the host outward, changing one control at a time so the result is easy to interpret.

Troubleshoot agent connectivity issues and blocked traffic

When a host won’t register, confirm that it resolves the required names, can establish outbound HTTPS, and isn’t being blocked by a proxy or firewall deny rule. Review agent and boot loader logs under C:Program FilesMicrosoft RDInfra, along with relevant Windows event logs, for connection or registration errors.

For a practical handoff between teams, capture the affected hostname, time of failure, destination, port, and any firewall or proxy log entry. That evidence makes it easier to identify the exact rule to adjust without widening access unnecessarily.

Keep session host connectivity secure and dependable

Reliable Azure Virtual Desktop connectivity comes from matching firewall rules to the actual connection path: allow the agent’s required outbound access, keep unsolicited inbound traffic restricted, and account for every network layer between the host and Azure. A focused approach supports a smoother user experience without opening more access than necessary.

Verify the rules from the session host, use Microsoft’s current endpoint guidance, and revisit your configuration as your environment changes. With clear documentation and evidence-led troubleshooting, you can resolve connectivity issues confidently and keep your session hosts ready for users.

Leave a Reply

Your email address will not be published. Required fields are marked *

      Written by Maeve Rodriguez

      Maeve is a Business Content Writer and Front-End Developer. She's a versatile professional with a talent for captivating writing and eye-catching design.