Using Microsoft Entra application proxy with Remote Desktop Services supports two main access paths from the context:
- RD Web with the classic ActiveX-based experience (Internet Explorer mode in Edge) and Web SSO.
- The Remote Desktop web client (HTML5) over application proxy.
For Entra preauthentication, the supported scenario is that users launch RemoteApps/desktops from RD Web or the RD Web client. The context explicitly notes that using downloaded .rdp files with this preauthentication flow is not supported:
“This option enables the user to download the rdp file and use it by another RDP client (outside of the Remote Desktop Web Client). Typically, another RDP clients (like the Microsoft Remote Desktop Client) can't handle the preauthentication natively. That's why the scenario doesn't work.”
In other words:
- When RD Web is published through Microsoft Entra application proxy with Entra preauthentication,
.rdp files downloaded from RD Web and opened directly in mstsc or another RDP client are not a supported access method.
- The error seen when launching the
.rdp file is expected behavior in this configuration, because the RDP client cannot perform the required Entra preauthentication and use the application proxy cookie.
The supported configuration for this scenario is:
- RD Web and RD Gateway on the same server and published as a single application through Microsoft Entra application proxy.
- Users connect via a supported browser to RD Web or the RD Web client and launch resources from there.
- For Web SSO with the built-in Remote Desktop Connection client, the supported path is to connect to RD Web via Internet Explorer Mode in Microsoft Edge with the documented server-side settings (RD Web forms auth, RD Gateway password auth, and “Use RD Gateway credentials for remote computers”).
There is no supported configuration in the provided context that enables generic .rdp files (outside RD Web / RD Web client) to work through Microsoft Entra application proxy preauthentication.
Regarding China/21Vianet, the context provided does not contain any specific guidance or support statement, so no additional details can be given from this source.
References: