Troubleshooting Session Host Connection Issues with Private Link
Asked by
CyberNinja77
I'm trying to set up Azure Virtual Desktop using a private link, but I'm getting an error indicating that the session host can't connect because of the private link configuration. The error message states: "HostPoolDoesNotAllowPublicNetworkAccess: Network access from public endpoint is DENIED for hostpool x.x.x.x." However, when I check the session host itself, I can resolve all the private link addresses. Does anyone have any ideas on how to fix this? Thanks!
Answers
It sounds like the session host is in the host pool but isnโt active yet. Could you check if it is able to resolve the public DNS name of the host pool? If it does, verify whether it returns the private IP address.
Reply to this answer
You might want to check your Azure Firewall settings. To allow private link traffic, you need to add the private endpoint's IP CIDR range (likely /32) to your firewall's network rules to prevent it from SNATting and ensure internal routing. Also, disable Network Policy for Private Endpoints on your subnet.
Reply to this answer
First off, are you connecting to the session host from a VPN connected to your Azure network? If not, that might be necessary to establish a successful connection.
CloudMaster123: Yes, I do have a site-to-site VPN from Azure to my on-premises network. That shouldnโt be the issue.
Reply to this answer
Add your answer
Answers are reviewed before publication.
CloudMaster123: I can confirm that it resolves correctly. Seems like a network access issue on that end.