To set up Azure AD Application Proxy to publish RDWeb on a Windows Server 2025 Remote Desktop deployment, you need to ensure that the configuration aligns with the requirements and best practices for using Azure AD Application Proxy with Remote Desktop Services (RDS). Here are some steps and considerations based on your description:
- Ensure Compatibility: Verify that both the RD Web and RD Gateway endpoints are located on the same machine with a common root. This is crucial for a single sign-on experience between the two applications.
- Publish the RD Web Application: When publishing the RD Web application through Azure AD Application Proxy, make sure to set the following:
- Internal URL: This should point to your RD Web endpoint (e.g.,
https://<rdhost>.com/RDWeb). - External URL: This is automatically populated but can be modified as needed.
- Pre-authentication method: Set this to Microsoft Entra ID.
- Translate URL headers: Disable this option to avoid issues with URL translation.
- Internal URL: This should point to your RD Web endpoint (e.g.,
- FQDN Consistency: Use the same internal and external Fully Qualified Domain Name (FQDN) for RD Web. If they differ, it can lead to websocket errors and connection issues.
- Check RDP File Configuration: Ensure that the RDP files generated for RemoteApps are correctly configured to use the external URL of the RD Gateway. If the RDP files are pointing to an incorrect address, it could lead to connection issues.
- Firewall and Port Configuration: Confirm that the necessary ports for RDS and Azure AD Application Proxy are open. Common ports include 443 for HTTPS and others specific to RDS.
- Session Host Configuration: Make sure that the Session Host role is properly configured to allow RemoteApps to be published and accessed through the RD Web.
- MFA Configuration: Since you are using MFA, ensure that it is correctly set up and does not interfere with the session establishment for RemoteApps.
- Logs and Diagnostics: Check the logs on the RD Gateway and Connection Broker for any errors that might provide more insight into the connection issues. Look for any specific error codes or messages that could indicate where the problem lies.
- Testing with Different Browsers: Sometimes, browser compatibility can affect the behavior of RD Web. Test accessing RDWeb from different browsers to see if the issue persists.
If the problem continues after checking these configurations, consider reaching out to Microsoft support for more in-depth diagnostics specific to your environment.
References: