Publish Remote Desktop with Azure Active Directory Application Proxy Problem

Rens Vermeulen 0 Reputation points
2023-05-02T15:55:27.97+00:00

I am stuck in the process of publishing my RDS Farm via Azure Active Directory Application Proxy. Finally when i want to launch the RDP file to launch my desktop via the RDP file it gives me an auth failure:

afbeelding

I put a webproxy between me and the internet to see what goes wrong (using burp suite) and see the following error:

afbeelding

So the reason of failure: Unauthorized and when I try to Authorize (via negotiate) as asked by the MS proxy it says service unavailble 503. Strange part is: I had this working yesterday with the same setup!!! AFter a shutdown of all components (dc, rds, sessionshosts) it doest not work anymore.

MY SETUP

I did create two Application Proxy's on Azure:

App one --> this is for the RDWEB

BASIC SETTINGS

internal URI: https://<my_rds_host>.<mydomain>.local/rdweb/

external URI: https://rdswebproxy-<tenant_name>.msappproxy.net/rdweb/

Pre auth: Azure Active Directory

Advanced SETTINGS

All options OFF

App two --> this is for the rpc (gateway)

Basic

internal URI: https://<my_rds_host>.<mydomain>.local/rpc/

external URI: https://rdswebproxygw-<tenant_name>.msappproxy.net/rpc/

Pre auth:Passthrough

Advanced settings

All options OFF except transate URLs in headers; that option is on.

My RDS gateway/web/connection broker are installed one server

The on prem gateway settings:

afbeelding

IIS settings:

afbeelding

Windows for business Windows Client for IT Pros User experience Remote desktop services and terminal services
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rens Vermeulen 0 Reputation points
    2023-05-02T15:56:25.3966667+00:00
    0 comments No comments

  2. Rens Vermeulen 0 Reputation points
    2023-05-02T20:47:54.2433333+00:00

    Issue has been resolved! I created an Enterprise Application via:

    Azure Active Directory --> Enterprise applications --> New application --> Add an on-premises application.

    Which is not working correcly, you get an error while opening RDP. I saw this because the homepage is not correct! it's like: https://account.activedirectory.windowsazure.com:444/applications/default.aspx?metadata=blabla and it should be like: https://<yourcustomname>-<yourtenant>.msappproxy.net/rdweb/.

    So it is very important that you create a Enterprise Application via:

    Azure Active Directory --> Application Proxy --> Configure an app.

    Also, the 401 and 503 above I saw in burp suite are misleading as those errors ONLY show up because i have a proxy in between.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.