Azure Private Link with Azure Virtual Desktop
You can use Azure Private Link with Azure Virtual Desktop to privately connect to your remote resources. By creating a private endpoint, traffic between your virtual network and the service remains on the Microsoft network, so you no longer need to expose your service to the public internet. You also use a VPN or ExpressRoute for your users with the Remote Desktop client to connect to the virtual network. Keeping traffic within the Microsoft network improves security and keeps your data safe. This article describes how Private Link can help you secure your Azure Virtual Desktop environment.
How does Private Link work with Azure Virtual Desktop?
Azure Virtual Desktop has three workflows with three corresponding resource types of private endpoints:
Initial feed discovery: lets the client discover all workspaces assigned to a user. To enable this process, you must create a single private endpoint to the global sub-resource to any workspace. However, you can only create one private endpoint in your entire Azure Virtual Desktop deployment. This endpoint creates Domain Name System (DNS) entries and private IP routes for the global fully qualified domain name (FQDN) needed for initial feed discovery. This connection becomes a single, shared route for all clients to use.
Feed download: the client downloads all connection details for a specific user for the workspaces that host their application groups. You create a private endpoint for the feed sub-resource for each workspace you want to use with Private Link.
Connections to host pools: every connection to a host pool has two sides - clients and session host virtual machines (VMs). To enable connections, you need to create a private endpoint for the connection sub-resource for each host pool you want to use with Private Link.
The following table summarizes the private endpoints you need to create:
| Purpose | Resource type | Target sub-resource | Quantity |
|---|---|---|---|
| Initial feed discovery | Microsoft.DesktopVirtualization/workspaces | global | One for all your Azure Virtual Desktop deployments |
| Feed download | Microsoft.DesktopVirtualization/workspaces | feed | One per workspace |
| Connections to host pools | Microsoft.DesktopVirtualization/hostpools | connection | One per host pool |
You can either share these private endpoints across your network topology or you can isolate your virtual networks so that each has their own private endpoint to the host pool or workspace.
The following high-level diagram shows how Private Link securely connects a local client to the Azure Virtual Desktop service:
Supported scenarios
When adding Private Link with Azure Virtual Desktop, you have the following options to connect to Azure Virtual Desktop. Each can be enabled or disabled depending on your requirements.
- Both clients and session host VMs use private routes.
- Clients use public routes while session host VMs use private routes.
- Both clients and session host VMs use public routes. Private Link isn't used.
Important
A private endpoint to the global sub-resource of any workspace controls the shared fully qualified domain name (FQDN) for initial feed discovery. This in turn enables feed discovery for all workspaces. Because the workspace connected to the private endpoint is so important, deleting it will cause all feed discovery processes to stop working. We recommend you create an unused placeholder workspace for the global sub-resource.
If you intend to restrict network ports from either the user client devices or your session host VMs to the private endpoints, you will need to allow traffic across the entire TCP dynamic port range of 1 - 65535 to the private endpoint for the host pool resource using the connection sub-resource. The entire TCP dynamic port range is needed because port mapping is used to all global gateways through the single private endpoint IP address corresponding to the connection sub-resource. If you restrict ports to the private endpoint, your users may not be able to connect successfully to Azure Virtual Desktop.
Limitations
Private Link with Azure Virtual Desktop has the following limitations:
You need to enable the feature on each Azure subscription you want to Private Link with Azure Virtual Desktop.
You can't use the manual connection approval method when using Private Link with Azure Virtual Desktop. We're aware of this issue and are working on fixing it.
All Remote Desktop clients to connect to Azure Virtual Desktop can be used with Private Link, but we currently only offer troubleshooting support for the web client with Private Link.
After you've changed a private endpoint to a host pool, you must restart the Remote Desktop Agent Loader (RDAgentBootLoader) service on the session host VM. You also need to restart this service whenever you change a host pool's network configuration. Instead of restarting the service, you can restart the session host.
Service tags are used by the Azure Virtual Desktop service for agent monitoring traffic. These tags are created automatically.
Using both Private Link and RDP Shortpath at the same time isn't supported.
Next steps
- Learn how to Set up Private Link with Azure Virtual Desktop.
- Learn how to configure Azure Private Endpoint DNS at Private Link DNS integration.
- For general troubleshooting guides for Private Link, see Troubleshoot Azure Private Endpoint connectivity problems.
- Understand Azure Virtual Desktop network connectivity.
- See the Required URL list for the list of URLs you need to unblock to ensure network access to the Azure Virtual Desktop service.
Feedback
Submit and view feedback for