Skip to content

๐Ÿ‘‹ Introduction โ€‹

With Microsoft Entra application proxy, your users can securely reach on-premises web apps from anywhere. Once they sign in to Entra ID with single sign-on (SSO), they can open both cloud and on-premises apps through a URL or an application portal. Since the service runs in the cloud, you don't have to open inbound firewall ports, run a perimeter network (DMZ) or add on-premises appliances. Your on-premises apps can get all the Entra access control advantages (e.g. Conditional Access or MFA) without you needing to migrate them.

Besides publishing on-premises web apps, application proxy also supports other use cases:

  • Hosted REST APIs
  • Remote Desktop apps (e.g. Remote apps)
  • WebSockets connected apps
  • MSAL configured native client apps

๐Ÿ“ Architecture โ€‹

Application proxy consists of two parts: the application proxy service in the cloud and the private network connector inside your network. Entra ID acts as the identity provider.

INFO

Application proxy is designed for the access of internal resources from outside, not for internal users accessing internal resources, which can bring performance problems.



Components โ€‹

ComponentDescription
Remote userOpens the app from outside your network through its external URL or a user portal.
Microsoft Entra IDThe identity provider. Authenticates the user with the tenant directory in the cloud.
Application proxy serviceThe reverse proxy that runs in the cloud as part of Entra ID. It passes the sign-on token from the user to the connector.
FirewallOnly needs outbound ports 80 and 443 for the connector. No inbound ports are opened.
Private network connectorA lightweight agent on Windows Server inside your network that handles the communication between the service and the on-premises app.
Active DirectoryAuthenticates the domain accounts on-premises. When SSO is configured, the connector uses it to get a Kerberos ticket for the app.
Web appThe on-premises app you publish, reached by the connector through its internal URL.

INFO

Every connector belongs to a connector group and every app you publish is assigned to one group. If you don't create your own groups, all connectors are in the default group. Use at least two connectors per group for high availability.



Secure connection from outside โ€‹

  • The connector keeps outbound connections to the application proxy service open (ports 80 and 443). When a user request comes in, the service places it in a queue on one of these open connections, where the connector picks it up and forwards it to the app. For the response, the connector again connects outbound to the service. You don't need inbound firewall ports or a perimeter network.
  • All communication is encrypted with TLS and the connector authenticates to the service with a client certificate.
  • With preauthentication, only authenticated users reach your network and Conditional Access applies before the connection is established.
  • All traffic ends in the cloud: As a reverse proxy, the application proxy service terminates the connection of the user. It then establishes a separate session to your app through the connector. Your back-end servers never receive direct HTTP traffic from the internet, which protects them better against targeted attacks like denial-of-service (DoS), because your firewall isn't under attack.


Single sign-on to on-premises apps โ€‹

With single sign-on, your users only authenticate with Entra ID and reach the app without signing in again. Which method fits depends on how your app authenticates its users:

MethodFor apps thatThe app receives
Integrated Windows Authenticationuse Integrated Windows Authentication (IWA)A Kerberos ticket that the connector gets from Active Directory
Header-baseduse HTTP headers for authenticationHTTP headers that the application proxy service creates from the Entra ID token
Password-basedhave an HTML sign-in page for username and passwordThe username and password stored in Entra ID
SAMLcan consume SAML tokens issued by Entra IDA SAML response from Entra ID

Open a method to see how it works. All flows start with the external URL, but your users can also start the app from the My Apps portal.

Integrated Windows Authentication

Apps that use Integrated Windows Authentication (IWA) require a Kerberos ticket. Application proxy supports them with Kerberos Constrained Delegation (KCD): the connector gets the ticket from Active Directory on behalf of the user. This requires a domain-joined connector server.

StepDescription
1The user opens the external URL of the app.
2Application proxy redirects the user to Entra ID, which applies your authentication policies (e.g. MFA) and issues a token.
3The user passes the token to the application proxy service.
4The service validates the token and the connector pulls the UPN (User Principal Name) and SPN (Service Principal Name) through a secure channel.
5The connector requests a Kerberos ticket for the app from Active Directory, impersonating the user.
6Active Directory sends the Kerberos ticket to the connector.
7The connector sends the original request with the Kerberos ticket to the app.
8The app responds through the connector and the service to the user.
Header-based

Application proxy natively supports apps that use headers for authentication. You configure the header values your app needs in Entra ID. They are based on the standard claims Entra ID issues and no extra software is required.

StepDescription
1The user opens the external URL of the app.
2Application proxy redirects the user to Entra ID, which authenticates the user and issues a token.
3The user passes the token to the application proxy service.
4The service takes the claims your app needs from the token, translates them into HTTP headers and adds them to the request to the connector.
5The connector passes the request with the headers to the app.
6The app uses the headers to identify the user and responds through the connector and the service.

WARNING

The app trusts the headers without checking them. Anyone who reaches the app directly can send their own headers and sign in as any user. Restrict the access to the app to traffic from the connector or another permitted header-based authentication solution, e.g. with a firewall or an IP restriction on the app server.

Password-based

Password-based single sign-on, also known as password vaulting, is intended for apps that authenticate with a username and password on an HTML sign-in page. Entra ID stores the credentials encrypted in the directory and the My Apps extension in the browser supplies them to the sign-in form.

StepDescription
1The user opens the external URL of the app.
2Application proxy redirects the user to Entra ID, which authenticates the user and issues a token.
3The user passes the token to the application proxy service. The request reaches the app through the connector and the app returns its sign-in page to the browser.
4The My Apps extension in the browser gets the stored username and password for the app from Entra ID.
5The extension fills the credentials into the sign-in form and submits it to the app.
6The app signs the user in with its own authentication.

NOTE

On the first start, users enter their credentials once, unless you predefined them. The My Apps Secure Sign-in extension requires Microsoft Edge or Chrome and isn't supported in private browsing.

SAML

This method is for apps that are secured with SAML authentication and can consume SAML tokens issued by Entra ID. Entra ID authenticates to the app with the Entra account of the user and application proxy forwards the SAML request and response between the app and Entra ID.

StepDescription
1The user opens the external URL of the app.
2Application proxy redirects the user to Entra ID for preauthentication.
3After the sign-in, the user is redirected back to application proxy and the request is forwarded to the app.
4The app generates a SAML request and redirects to Entra ID. This request is proxied through application proxy.
5Entra ID returns the SAML response, which application proxy forwards to the app through the connector.
6The app validates the SAML response and signs the user in.

NOTE

This is the flow when the user starts at the app (SP-initiated). When the user starts the app in My Apps (IdP-initiated), the SAML response comes along with the first request. Application proxy caches it during the preauthentication and then forwards it to the app.

โš™๏ธ Configuration โ€‹

To publish an on-premises app with application proxy, you install a connector inside your network, add the app in Entra ID and configure single sign-on.

Prerequisites

  • An Entra ID P1 or P2 license.
  • An account with at least the Application Administrator role.
  • A server running Windows Server 2016 or later with .NET Framework 4.7.2 or later for the connector. It must be able to reach the application proxy service and the app you want to publish.
  • TLS 1.2 must be enabled on the connector server before you install the connector.

WARNING

Don't install the connector on a server that runs the Microsoft Entra Password Protection Proxy. Both install different versions of the Microsoft Entra Connect Agent Updater service, which are incompatible.



Prepare Entra ID โ€‹

Before you start, make sure that Private Network is enabled for your tenant. Without it, your published apps don't work, even with an active connector.

  1. Open the Entra admin center -> Enterprise apps -> Private Network connectors.
  2. If you see the message Private Network is currently disabled for your tenant, click ยทยทยท and select Enable private network connectors.
  1. Confirm with Yes.

What does this do?

This only turns on the application proxy service in the cloud for your tenant. It doesn't change anything on your local network.



Prepare the connector server โ€‹

Firewall

The connector only needs outbound access. Open the following ports for outbound traffic:

PortUsage
80Download of certificate revocation lists (CRLs) while validating the TLS certificate
443All outbound communication with the application proxy service
URLs the connector needs to reach
URLPortUsage
*.msappproxy.net
*.servicebus.windows.net
443Communication between the connector and the application proxy service
crl3.digicert.com
crl4.digicert.com
ocsp.digicert.com
crl.microsoft.com
oneocsp.microsoft.com
ocsp.msocsp.com
80Verification of certificates
login.windows.net
secure.aadcdn.microsoftonline-p.com
*.microsoftonline.com
*.microsoftonline-p.com
*.msauth.net
*.msauthimages.net
*.msecnd.net
*.msftauth.net
*.msftauthimages.net
*.phonefactor.net
enterpriseregistration.windows.net
management.azure.com
ctldl.windowsupdate.com
www.microsoft.com/pkiops
443Registration of the connector and ongoing operation
ctldl.windowsupdate.com
www.microsoft.com/pkiops
80Registration of the connector and ongoing operation

WARNING

The connection between the connector and the application proxy service is encrypted and the connector authenticates with a client certificate. If a firewall or proxy decrypts or inspects this traffic, the certificate gets lost and users get a ConnectorError:Unauthorized error. Exclude these connections from any TLS/SSL inspection.

DNS

The names *.msappproxy.net and *.servicebus.windows.net resolve through chained CNAME records with other host names that change from time to time. So don't limit the DNS resolution to these two domains and allow the connections by domain suffix instead of single host names. If your firewall can only filter by IP address, allow the Azure IP ranges and service tags, which are updated every week.

INFO

If you use proxy servers to connect to the internet, configure them as described in Work with existing on-premises proxy servers.

Service region

By default, your connectors use the application proxy service instances in the region of your Entra tenant or the closest one. You can assign a connector group to a different region to reduce latency. Each app uses one connector group, so all users of an app go through the service region of that group.

For example, your app has users in the USA, Germany and Japan:

  • One app location: The app only runs in Germany. Place the connector next to it and optimize the connector group for Europe. The users in Germany have a short way, but the users in the USA and Japan have a long way to the service in Europe.
  • Several app locations: The app also runs in the USA and Asia. Create a connector group for each location, optimize it for the closest region and publish each location as its own app with its connector group. All users then reach the app in their own region.

INFO

TLS 1.2

If TLS 1.2 isn't enabled on the server yet, you can enable it with the following script and restart the server afterwards.

PowerShell script to enable TLS 1.2
PowerShell
If (-Not (Test-Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client'))
{
    New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -Force | Out-Null
}
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -Name 'Enabled' -Value '1' -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' -Name 'DisabledByDefault' -Value '0' -PropertyType 'DWord' -Force | Out-Null

If (-Not (Test-Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server'))
{
    New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -Force | Out-Null
}
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -Name 'Enabled' -Value '1' -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' -Name 'DisabledByDefault' -Value '0' -PropertyType 'DWord' -Force | Out-Null

If (-Not (Test-Path 'HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319'))
{
    New-Item 'HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319' -Force | Out-Null
}
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319' -Name 'SystemDefaultTlsVersions' -Value '1' -PropertyType 'DWord' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -PropertyType 'DWord' -Force | Out-Null

Write-Host 'TLS 1.2 has been enabled. You must restart the Windows Server for the changes to take effect.' -ForegroundColor Cyan

HTTP/2

On Windows Server 2019 or later, you must disable HTTP/2 in WinHTTP so that apps published through application proxy work properly. Set the following registry key and restart the server:

PowerShell
$key = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp'
if (-not (Test-Path $key)) { New-Item -Path $key -Force | Out-Null }
Set-ItemProperty -Path $key -Name 'EnableDefaultHTTP2' -Value 0 -Type DWord


Install the connector โ€‹

  1. On the connector server, open the Entra admin center -> Enterprise apps -> Private Network connectors and click Download connector service.
  2. In the flyout, click Accept terms & Download.
  1. Run the downloaded installer and follow the wizard.

  2. When prompted, sign in with your Admin account to register the connector with your tenant.

INFO

  • If the registration window doesn't appear, make sure that Internet Explorer Enhanced Security Configuration is turned off on the server.
  • If you use more than one connector server, install and register the connector on each of them.


Verify the connector โ€‹

Entra admin center

  1. Open the Entra admin center -> Enterprise apps -> Private Network connectors.
  2. Expand the connector group and check that your connector shows a green Active label.

INFO

The Active label shows that the connector can connect to the service. A network issue could still block the connector from receiving messages.

Windows Server

  1. Open services.msc on the connector server.
  2. Check that both services have the status Running:
    • Microsoft Entra private network connector enables the connectivity.
    • Microsoft Entra private network connector updater checks for new versions and updates the connector.

Connector Diagnostics

The connector comes with its own diagnostics tool that checks the most common setup and network problems. On the connector server, you open the Connector Diagnostics tool by double-clicking the system tray icon.

The tool has the following tabs:

TabDescription
OverviewGeneral information about the connector
Health CheckChecks the setup and the network connections of the connector
PerformanceCPU and memory usage of the server over the last 24 hours
Advanced LogsCollects the connector logs from the Windows Event Viewer

Event Viewer logs

You find the connector logs in the Event Viewer under Applications and Services Logs -> Microsoft -> Microsoft Entra private network -> Connector.



Create a connector group โ€‹

New connectors are added to the Default connector group automatically. If you want to organize your connectors by region, network or purpose, create your own groups:

  1. Open the Entra admin center -> Enterprise apps -> Private Network connectors and click New connector group.
  2. Enter a Name and select the connectors that belong to the group.
  3. Under Country/Region, select the region closest to your connectors and your app.
  1. Click Save.

INFO

For the purposes of resilience and availability, you should use at least two connectors for each group.



Publish the app โ€‹

  1. Open the Entra admin center -> Enterprise apps -> Private Network connectors and click Configure an app.

  2. Fill in the settings of your app:

    FieldDescription
    Maintenance ModeTemporarily disables the access to the app for all users.
    NameThe name of the app that appears in My Apps and in the Entra admin center.
    Internal URLThe URL to access the app from inside your network. You can also publish a specific path, as long as it includes all images, scripts and style sheets the app needs.
    External URLThe address your users open from outside your network. In the dropdown you select the default domain msappproxy.net that Microsoft provides or one of your verified custom domains. If you select a custom domain, you need to add the app as a CNAME entry to your DNS.
    Application segmentsOnly for complex apps that consist of several web apps with different domains, ports or paths. Each segment has its own internal and external URL, but all segments share one sign-in and the same Conditional Access policies. Segments require a wildcard app and a custom domain. With Entra ID P1 or P2, two segments per app are supported.
    Pre Authentication
    • Microsoft Entra ID redirects your users to the Entra ID sign-in, which enables Conditional Access and MFA.
    • With Passthrough, users don't authenticate against Entra ID and the app handles the sign-in itself.
    Connector GroupThe connector group that handles the access to the app.
    SSL CertificateThe certificate for the external URL. With the default domain msappproxy.net no certificate is required. A custom domain needs a PFX certificate (see Use a custom domain).

WARNING

Keep Pre Authentication on Microsoft Entra ID. With Passthrough, you lose the protection that only authenticated connections reach your network.

INFO

The internal and external URL must be unique, start with http or https, end with a / and use a domain name instead of an IP address.

  1. If needed, you can adjust additional settings on the Advanced tab.

    FieldDescription
    Backend Application TimeoutSet it to Long only if your app is slow to authenticate and connect. The default timeout is 85 seconds, Long increases it to 180 seconds.
    Use HTTP-Only CookiePrevents scripts in the browser from reading or changing the session cookies of application proxy, which better protects the session. Keep it unselected for clients that need the session cookie, e.g. Remote Desktop through a Remote Desktop Gateway.
    Use Persistent CookieKeeps the session cookie after the browser is closed, until the access token expires. Keep it unselected, because users stay signed in. Only select it for older apps that can't share cookies between processes.
    Translate URLs in HeadersKeep it selected unless your app requires the original host header in the authentication request.
    Translate URLs in Application BodyReplaces hardcoded internal links in the HTML and CSS of the app with the external URLs of your published apps, so they also work from outside. Keep it unselected unless your app has hardcoded links to other on-premises apps and you don't use custom domains. Select it if you plan to monitor the app with Microsoft Defender for Cloud Apps.
    Validate Backend TLS CertificateChecks the TLS certificate of your app behind the internal URL, so the connection from the connector to the app is only established with a valid certificate.
    Disable continuous access evaluationDisables continuous access evaluation (CAE) for this app. With CAE, application proxy reacts in near real time to a disabled account, a password reset or revoked tokens and asks the user to sign in again. Conditional Access still applies.
  1. When you are done, click Create.


Since June 30, 2026, application proxy no longer grants admin consent for the User.Read permission automatically when you create a new app. This only applies to newly created apps. Existing apps aren't affected.

  1. To grant consent yourself, open the Entra admin center -> Entra ID -> Enterprise apps and select your app.
  2. Open the Permissions blade and click Grant admin consent for <your tenant>.
  1. Approve the permissions pop-up window by clicking Accept.
  1. User.Read now appears under Admin consent with the type Delegated.


Assign users โ€‹

Only assigned users can open the app. Once assigned, the app also appears in their My Apps portal.

  1. Open your app under Entra admin center -> Entra ID -> Enterprise apps and select the Users and groups blade.
  2. Click Add user/group, select your users or groups and click Assign.

INFO

To make the app available to all users, set Assignment required? to No in the Properties of the enterprise app.



Configure single sign-on โ€‹

Which single sign-on method you need depends on how your app authenticates its users (see Single sign-on to on-premises apps). For all methods, you open your app under Entra admin center -> Entra ID -> Enterprise apps and select the Single sign-on blade.

The following examples use an IIS website hosted on a domain server.

Integrated Windows Authentication

This method uses Kerberos Constrained Delegation (KCD) for apps with integrated Windows authentication.

Prerequisites

  • The app uses integrated Windows authentication and has a Service Principal Name (SPN). For an app that runs under the computer account of its server, the HOST SPN of the server covers this.
  • The connector server and the app server are domain joined and part of the same domain or trusting domains.
  • Pre Authentication of the app is set to Microsoft Entra ID.
  • The connector server can read the TokenGroupsGlobalAndUniversal attribute of your users. In hardened environments, add the connector server to the Windows Authorization Access group.

Active Directory

  1. Open Active Directory Users and Computers and open the Properties of the connector server.
  2. On the Delegation tab, select Trust this computer for delegation to specified services only and Use any authentication protocol.
  3. Under Services to which this account can present delegated credentials, add the SPN of the app server:
    • Click Add -> Users or Computers and enter the account the app runs under. That's the computer account of the app server, or the service account if the app runs under a domain user.
    • From the list of services, select the entry with the service type http.

INFO

These steps apply when the connector server and the app server are in the same domain. For different domains, refer to Kerberos Constrained Delegation for single sign-on.

Entra admin center

  1. Open your app under Enterprise apps and select Single sign-on.
  2. Select Windows Integrated Authentication as single sign-on mode (the portal name for Integrated Windows Authentication).
  1. Enter the Internal Application SPN of the app server in the format http/<FQDN of the server>, e.g. http/webserver.domain.local, without http:// and without a port. The SPN must match the host name in the internal URL of the app and one of the entries you added on the Delegation tab.

INFO

The SPN always starts with http/, even if your internal URL uses https://.

  1. Select On-premises SAM account name as Delegated Login Identity and click Save.

INFO

With the Delegated Login Identity you choose which identity is used to get the Kerberos ticket:

  • User principal name, if your users have the same UPN in the cloud and on-premises.
  • On-premises user principal name or On-premises SAM account name, if they differ, e.g. with a non-routable internal domain like domain.local.

The users must be synchronized from your Active Directory. Cloud-only users have no Active Directory account to get a Kerberos ticket for.

Header-based

The application proxy service sends the values your app needs as HTTP headers. The values are based on the standard claims of Entra ID, so you don't need any extra software.

Prerequisites

  • Pre Authentication of the app is set to Microsoft Entra ID.

Entra admin center

  1. Open your app under Enterprise apps and select Single sign-on.
  2. Select Header-based as single sign-on mode.
  1. As mode, use Microsoft Entra ID and under Configure Headers, click the edit pencil and Add new header.
  2. Enter the Name of the header your app expects, select the Source and select the value from the dropdown.

Source

  • Attribute sends a user attribute as is (user.userprincipalname).
  • Transformation changes an attribute before it's sent (ExtractMailPrefix() turns user@domain.com into user).
  • Directory schema extension sends a custom attribute that Entra ID doesn't have by default (an extra AD attribute synced with Entra Connect). Custom attributes belong to an app registration, so you select that app first.
  1. Click Save.

Verify the headers

The application proxy adds the headers to the request on its way to the app, so they never appear in the browser of the user. To see them, put a small test page on the app server that displays all headers of an incoming request. Open it through the external URL and sign in. Your headers show up with the values of the signed-in user and X-MS-Proxy confirms the request came through the application proxy.

INFO

  • With a group header, the app also gets the groups of the user to set permissions in the app. You choose which groups are sent (all groups, security groups or groups assigned to the app) and the Source attribute: Group ID for all groups, sAMAccountName (also with the NetBIOS or DNS domain) or On Premises Group Security Identifier for groups synced from AD and Cloud-only group display names for cloud groups assigned to the app.
  • Advanced settings fine-tune the token and add external data.
    • Include attribute name format adds the name format to each claim.
    • Issuer with application ID and Audience override separate several instances of the same app (only with a custom signing key).
    • Custom claims provider adds attributes from an external REST API.
  • The header configuration applies to the whole app. Every path below the internal URL gets the same set of headers. A path that needs a different set must be published as its own app with this path as internal URL.
Password-based

Entra ID stores the username and password for the app and the My Apps extension fills them into the sign-in page of the app.

Prerequisites

  • The app has an HTML sign-in page with username and password.
  • You and your users use Microsoft Edge or Chrome with the My Apps Secure Sign-in Extension (Edge, Chrome) in a normal browser window. Private windows aren't supported.

Entra admin center

  1. Open your app under Enterprise apps, select Single sign-on and select Password-based as single sign-on mode.
  1. Enter the Sign-on URL, the external URL of the page where your users enter their username and password, and click Save. Entra ID now searches this page for the sign-in fields and shows A sign-in form was detected when it finds them or No sign-in fields have been found if not.
  1. If No sign-in fields have been found appears, click Capture sign-in fields.
  • If the extension isn't installed yet, Browser extension needed appears. Click Install and add the extension to your browser.
  • In the new tab, enter any username and password, open the extension in the browser toolbar and click Save. The capture tab will then show Metadata has been updated for the application.
  • Back in the admin center, click Refresh until A sign-in form was detected appears, and click Save.

INFO

Microsoft's guide sets Pre Authentication to Passthrough during the setup. In my test, the sign-in fields were also detected with Microsoft Entra ID.

  1. Optional: To predefine the credentials for a user, select Users and groups, select the user and click Update credentials.

INFO

Without predefined credentials, your users enter their username and password once on the first start of the app.

SAML

Entra ID signs your users in to the app with a SAML response. The app must be able to consume SAML tokens issued by Entra ID.

Prerequisites

  • Pre Authentication of the app is set to Microsoft Entra ID.
  • SAML single sign-on works for the app inside your network. Microsoft recommends setting it up and testing it before you publish the app.

Entra admin center

  1. Open your app under Enterprise apps and select Single sign-on.
  2. Select SAML as single sign-on method.
  1. Confirm Save single sign-on setting with Yes. Apps published with application proxy use fixed URLs, so the portal fills in the Identifier, Reply URL and Logout URL with the external URL of the app.
  1. Under Basic SAML Configuration, click the edit pencil. Adjust the Identifier and the Reply URL to the values your app expects, based on the external URL, and mark one of each as Default. If your users start the sign-in in the app, also enter the Sign on URL. Click Save.
  1. After saving, a prompt asks you to test the single sign-on. Click Test and then Test sign in to sign in with your account.

INFO

  • The Identifier must exactly match the entity ID your app sends, including a trailing slash. Otherwise Entra ID rejects the sign-in with error AADSTS700016.
  • If your app expects the internal URL as reply URL, use a custom domain with the same internal and external URL or the My Apps Secure Sign-in extension.


Use a custom domain โ€‹

By default, the external URL of an app ends with the Microsoft domain msappproxy.net. With a custom domain, your users reach the app under your own domain instead.

Prerequisites

  • A verified custom domain in Entra ID.
  • A PFX certificate for the custom domain that includes the private key.

Entra admin center

  1. Open your app under Enterprise apps and select Application proxy.

  2. In the External URL field, select your custom domain from the dropdown list and click Save.

  3. After this, the Add SSL Certificate button appears to add your PFX certificate file, enter its password and click Upload Certificate.

  1. Click Save.
  2. Add the CNAME entry shown in the information bar to your external DNS zone.

WARNING

If you delete the app later, also delete its DNS record to prevent misuse of dangling DNS records.

๐Ÿง‘โ€๐Ÿ’ป User experience โ€‹

From a user perspective, the published app behaves like a cloud app. Your users start it from My Apps or open the external URL directly, sign in with their Entra ID account and land in the app.

My Apps

  1. Open My Apps and sign in with your Entra ID account.
  2. The app appears next to your other apps. Select it to start it.

INFO

The Visible to users? setting in the Enterprise App properties controls whether the app appears in the My Apps portal. Even with Yes, it only appears for assigned users.

External URL

  1. Open the external URL of the app in the browser.
  2. If you aren't signed in yet, you are redirected to the Entra ID sign-in. Depending on your Conditional Access policies, this includes MFA.
  3. After the sign-in, the app opens under its external URL. With single sign-on configured, there is no second sign-in to the app itself.

Direct sign-on link

Every app also has a direct sign-on link that starts the app without going through My Apps first. You find it as User access URL under Enterprise apps -> your app -> Properties. You can put it into an email, a bookmark or your intranet.

https://launcher.myapps.microsoft.com/api/signin/<Application-ID>?tenantId=<your-tenant-id>

If the user isn't signed in yet, the link first shows the Entra ID sign-in and then opens the app.

No access

When trying to sign in with a cloud-only user or a user that is not assigned to the app, you will get an error message describing the problem, either from Entra or the App Proxy.

๐Ÿ’ก Conclusion โ€‹

Application proxy is an easy way to make on-premises web apps available from outside your network without a VPN and extend the authentication protection with MFA. No inbound ports, no VPN or DMZ necessary. Only a small connector that facilitates the communication between the app and Entra ID.

Install the connector โžก๏ธ Publish the app โžก๏ธ Assign users

That is all you need to get started. Single sign-on, Conditional Access and custom domains then make it seamless for your users.

If you run legacy apps on-premises, application proxy is a great way to add modern authentication controls to them.

Resources