Skip to content

Firewall Considerations - Windows Virtual Desktop (WVD)

Technical Article

Firewall and perimeter security considerations for Azure Virtual Desktop, comparing Azure Firewall and third-party appliances and highlighting the current required outbound endpoints.

Categories
Microsoft
Tags
Azure FirewallFirewall For WvdVirtual DesktopWindows Virtual DesktopWvdWvd Firewall
Firewall Considerations - Windows Virtual Desktop (WVD)

Introduction:

This article covers both firewall and perimeter security considerations when deploying or enhancing an existing WVD Deployment. It would not be wise to deploy a Windows Virtual Desktop solution with users directly connecting to the public network without some form of security provision. In this article, we will look at the options available and some of the considerations needed for deploying the Azure firewall or a third party firewall for Windows Virtual Desktop.

The core design still applies in 2026, but the exact Microsoft endpoints do move over time and WVD is now Azure Virtual Desktop (AVD). So keep the architecture thinking from this post, but treat the current Microsoft endpoint list as the source of truth whenever you build or troubleshoot.

Perimeter security - Why:

Deploying a third party firewall provides the added benefits of content filtering, gateway antivirus and application control features amongst others. Content filtering is a must for some industries and without this, it would not be possible to implement Windows Virtual Desktop. Take Education for example, safeguarding and education friendly content control. This cannot be achieved out of the box with WVD. Some may turn to third party applications to achieve the content filtering objective, however using localised applications for such functions does have a performance cost associated within a host pool.

There are many firewall options available to use and you can find these on the Azure Market place:

alt text

Azure Marketplace - Firewalls

Enhancing Security using a third party firewall:

As shown in the image below, you can see that a third party firewall can sit between multiple subnets on a VNet. In this example we have a LAN subnet where local azure resources reside and a WAN subnet where we assign Azure Public IP addresses and NAT across.

You will note that the security features can inspect locally between services as well as ingress and egress traffic to and from the public network. The added value of IPS and packet inspection should be noted.

alt text

Third Party Firewall Example Deployment

Using Azure's Firewall:

You don't have to use a third party firewall, There is the option to use Microsoft Azure's Firewall.

There are some differences to a third party firewall including the security features mentioned above. Azure Firewall now gives you the cleaner Microsoft-native route for AVD because you can use the WindowsVirtualDesktop service tag and the Azure Virtual Desktop FQDN tag in policy rather than maintaining a brittle manual list. One of the key benefits of Azure Firewall is that it is vastly scalable enabling automation. The other big design point now is that DNS proxy must be enabled if you want to use FQDN filtering in network rules.

Windows Virtual Desktop architecture

Azure Firewall Overview

Issues you may experience if the firewall is not configured / correctly:

There are many issues that can occur when a firewall is not configured correctly for Windows Virtual Desktop. The two most common issues when deploying a firewall to Azure are DNS and KMS related. My suggestion would be to check all the required ports and URL's for each Azure service before deploying when a firewall is in play. I have listed the URL's and ports required for Windows Virtual Desktop below.

There are now two extra gotchas I would add:

  • Do not use TLS inspection or SSL termination on Azure Virtual Desktop traffic.
  • Do not force all AVD broker and gateway traffic through Azure Firewall with only a default route. Microsoft now recommends a direct route for the WindowsVirtualDesktop service tag to the Internet to avoid disconnects during firewall scale-in events.

The following is not a extensive list of issues you may see / experience. however, for those who are having issues, it may help:

  • Windows 10 not Activated - KMS
  • Unable to access the internet - DNS
  • Unable to connect to a Host pool - Service traffic blocked
  • Azure authenticator not working - service blocked
  • Agent and SXS stack not updating - check rules, service being blocked or DNS issue.

To Diagnose issues, you can use PSPING to test a FQDN and port.

WVD required Firewall Rules:

Here is the list of Azure firewall rules I now check first when reviewing an AVD deployment. It is intentionally focused on the important current items rather than trying to freeze every possible optional endpoint forever.

AddressProtocol / portPurposeService Tag
login.microsoftonline.comTCP 443Authentication to Microsoft Online ServicesAzureActiveDirectory
*.wvd.microsoft.comTCP 443Service traffic including TCP-based RDP connectivityWindowsVirtualDesktop
51.5.0.0/16UDP 3478Relayed RDP connectivityWindowsVirtualDesktop
*.service.windows.cloud.microsoftTCP 443Service trafficWindowsVirtualDesktop
*.windows.cloud.microsoftTCP 443Service trafficNone
*.windows.static.microsoftTCP 443Service trafficNone
mrsglobalsteus2prod.blob.core.windows.netTCP 443Agent and SxS stack updatesStorage
*.prod.warm.ingest.monitor.core.windows.netTCP 443Agent diagnostic trafficAzureMonitor
gcs.prod.monitoring.core.windows.netTCP 443Agent trafficAzureMonitor
catalogartifact.azureedge.netTCP 443Azure MarketplaceAzureFrontDoor.Frontend
wvdportalstorageblob.blob.core.windows.netTCP 443Azure portal supportAzureCloud
azkms.core.windows.netTCP 1688Windows activationInternet
oneocsp.microsoft.comTCP 80Certificate checksAzureFrontDoor.FirstParty
ctldl.windowsupdate.comTCP 80Certificate checksNone

Also remember the Azure platform IPs 169.254.169.254 and 168.63.129.16. These are not normal Internet destinations and should not be intercepted, proxied, or redirected. Blocking them can break provisioning and health monitoring.

RD Client rules:

This is the list of rules that should be applied to the RD Client, Company endpoint device to ensure no client related issues.

AddressOutbound TCP portPurposeClient(s)
login.microsoftonline.com443AuthenticationAll
*.wvd.microsoft.com443Service trafficAll
*.servicebus.windows.net443Troubleshooting dataAll
go.microsoft.com443Microsoft FWLinksAll
aka.ms443Microsoft URL shortenerAll
learn.microsoft.com443DocumentationAll
privacy.microsoft.com443Privacy statementAll
*.cdn.office.net443Client updatesWindows Desktop
graph.microsoft.com443Service trafficAll
windows.cloud.microsoft443Connection centerAll
windows365.microsoft.com443Service trafficAll
ecs.office.com443Connection centerAll

Summary:

This article covers both Azure Firewall and third party firewall deployments with Windows Virtual Desktop. Both Options have been covered and I have provided a high level insight into diagnosing issues related WVD firewall issues.

I personally prefer to use a third party firewall with Windows Virtual desktop as it can allow you to standardise a firewall technology across platforms / multi cloud. However For those who just need a firewall or are looking for a technology which is scalable and can be automated, the Azure Firewall is the one for you.

Further reading:

https://learn.microsoft.com/en-us/azure/virtual-desktop/overview

https://learn.microsoft.com/en-us/azure/firewall/overview

https://learn.microsoft.com/en-us/azure/firewall/protect-azure-virtual-desktop

https://learn.microsoft.com/en-us/azure/virtual-desktop/required-fqdn-endpoint

https://azuremarketplace.microsoft.com/en-us/marketplace/apps?search=firewall&page=1