12.4 Web Application Proxy & Microsoft Entra Application Proxy

Key Takeaways

  • The application publishing paradigm has evolved from perimeter DMZ reverse proxies (WAP/AD FS) to outbound-only cloud reverse proxies (Microsoft Entra Application Proxy) and finally to protocol-agnostic Zero Trust Network Access.
  • Web Application Proxy (WAP) is a role service of the Windows Server Remote Access role, is deployed in the DMZ, is deliberately not domain-joined, and requires an inbound TCP 443 firewall pinhole plus pre-authentication via AD FS or pass-through.
  • Microsoft Entra Application Proxy eliminates every inbound firewall port by having a lightweight on-premises private network connector hold persistent outbound HTTPS (TCP 443) connections to *.msappproxy.net and *.servicebus.windows.net.
  • Entra Application Proxy performs pre-authentication in Microsoft Entra ID, so Conditional Access policies such as MFA, device compliance, and sign-in risk apply before a packet ever reaches the internal web server.
  • Single sign-on to a backend using Windows Integrated Authentication requires Kerberos Constrained Delegation (KCD) on the connector's computer object, using the S4U2self and S4U2proxy extensions.
Last updated: August 2026

Web Application Proxy & Microsoft Entra Application Proxy

Traditional enterprise application publishing relied on perimeter demilitarized zones (DMZs), inbound firewall port exceptions, public IP addresses, and broad network-layer VPNs. These legacy architectures create substantial attack surfaces: opening inbound firewall ports exposes web servers to zero-day internet scans, while traditional VPNs grant remote devices broad network-level access, allowing lateral movement in the event of an endpoint breach.

Microsoft's modern application publishing ecosystem implements Zero Trust principles across three generations of technology. This section covers the first two — Web Application Proxy (WAP) for perimeter AD FS federation and Microsoft Entra Application Proxy for outbound-only web application publishing, both of which are limited to HTTP/HTTPS. The third generation, Microsoft Entra Private Access, extends the same identity-centric model to every protocol and is covered in section 12.5; Azure Relay, which solves the narrower problem of exposing a single on-premises TCP endpoint to an Azure PaaS service, is covered in section 12.6.


1. Evolution of Remote Application Publishing

Understanding the architectural trajectory from legacy perimeter DMZs to cloud-delivered Security Service Edge (SSE) is vital for enterprise design and AZ-800 certification.

+-----------------------------------------------------------------------------------+
|                     EVOLUTION OF APPLICATION ACCESS PARADIGMS                     |
|                                                                                   |
|   [GENERATION 1: PERIMETER DMZ]                                                   |
|   - Web Application Proxy (WAP) + AD FS                                           |
|   - Requires Inbound Port 443, Public IPs, Perimeter DMZ, Public DNS              |
|   - Lateral Movement Risk: Moderate (DMZ Isolation)                               |
|                                   |                                               |
|                                   v                                               |
|   [GENERATION 2: CLOUD REVERSE PROXY]                                             |
|   - Microsoft Entra Application Proxy                                             |
|   - Outbound-only HTTPS (Port 443), Zero Inbound Ports, Entra ID Pre-Auth (MFA)   |
|   - Scope: HTTP / HTTPS Web Applications Only                                     |
|                                   |                                               |
|                                   v                                               |
|   [GENERATION 3: ZERO TRUST NETWORK ACCESS (ZTNA / SSE)]                          |
|   - Microsoft Entra Private Access (Global Secure Access)                         |
|   - Outbound-only Connectors + GSA Client on Endpoints                            |
|   - Scope: ALL Protocols & Ports (TCP, UDP, RDP, SMB, SSH, Kerberos, Legacy ERP)  |
+-----------------------------------------------------------------------------------+

Comparative Architectural Matrix

Architectural MetricWeb Application Proxy (WAP)Entra Application ProxyEntra Private Access (ZTNA)Azure Hybrid Connections
Network PlacementPerimeter DMZInternal LANInternal LANInternal LAN / Server
Inbound Firewall PortsRequires Inbound 443Zero (Outbound 443 only)Zero (Outbound 443 only)Zero (Outbound 443 only)
Supported ProtocolsHTTP / HTTPSHTTP / HTTPSAll TCP & UDP ProtocolsSpecific TCP Port (e.g. 1433)
Client Software Req.None (Browser-based)None (Browser-based)Global Secure Access ClientNone (PaaS integration)
Pre-AuthenticationAD FS / Pass-throughMicrosoft Entra ID (MFA/CA)Microsoft Entra ID (MFA/CA)Shared Access Signature (SAS)
Single Sign-On (SSO)Kerberos (KCD)KCD, Headers, SAMLKerberos, NTLM, Entra SSOApplication-level Auth
Target ConsumerExternal Public InternetExternal TelecommutersRoaming & Hybrid EnterpriseAzure App Services / Funcs

2. Web Application Proxy (WAP) Architecture

Web Application Proxy (WAP) is a role service of the Remote Access role in Windows Server. Designed specifically to reside in perimeter demilitarized zones (DMZs), WAP acts as a reverse proxy and AD FS proxy.

+-----------------------------------------------------------------------------------+
|                         WEB APPLICATION PROXY ARCHITECTURE                        |
|                                                                                   |
|   [INTERNET]                  [PERIMETER DMZ]               [INTERNAL LAN]        |
|   +-------------+             +-----------------------+     +-------------------+ |
|   | Remote User | ==(HTTPS)==>| Web App Proxy (WAP)   | ===>| Internal Web App  | |
|   +-------------+   Port 443  | - No Domain Join      | KCD | - Kerberos / NTLM | |
|                               | - Reverse Proxy       |     +-------------------+ |
|                               | - AD FS Proxy Role    |                           |
|                               +-----------------------+     +-------------------+ |
|                                           |                 | AD FS Farm        | |
|                                           +===(Auth Token)==| (Internal DCs)    | |
|                                                             +-------------------+ |
+-----------------------------------------------------------------------------------+

Key Operational Characteristics

  1. DMZ Placement: The WAP server sits between an external firewall and an internal firewall. It should not be joined to the internal Active Directory domain to prevent domain credential harvesting if the DMZ server is compromised.
  2. Inbound Firewall Requirement: External firewalls must open inbound TCP port 443 forwarding to the WAP server's public IP address.
  3. Pre-Authentication Options:
    • Active Directory Federation Services (AD FS): Clients are redirected to AD FS to obtain a security token before WAP permits traffic to reach the internal web application.
    • Pass-Through: WAP forwards raw client requests directly to the backend application without pre-authentication (used for basic authentication or client-certificate authentication).
  4. Kerberos Constrained Delegation (KCD): When publishing internal web applications configured for Windows Integrated Authentication (Kerberos), WAP can authenticate the user via AD FS claims and use KCD to obtain a Kerberos ticket to the backend server on the user's behalf.

3. Microsoft Entra Application Proxy Architecture

Microsoft Entra Application Proxy provides secure remote access to internal on-premises web applications without deploying a DMZ, opening inbound firewall ports, or managing external DNS records.

+-----------------------------------------------------------------------------------+
|                  MICROSOFT ENTRA APPLICATION PROXY ARCHITECTURE                   |
|                                                                                   |
|   [INTERNET CLIENT]           [MICROSOFT ENTRA CLOUD]        [INTERNAL NETWORK]   |
|   +-------------------+       +-----------------------+      +------------------+ |
|   | Remote User       |       | Entra App Proxy Svc   |      | Private Network  | |
|   | (Browser / M365)  | ====> | - Pre-Auth (MFA / CA) | <==> | Connector Agent  | |
|   +-------------------+       | - Token Validation    | Out- | (Windows Server) | |
|                               +-----------------------+ bound|        |         | |
|                                                        HTTPS |   (KCD / NTLM)   | |
|                                                        443   v        v         | |
|                                                              +------------------+ |
|                                                              | Internal Web App | |
|                                                              | (e.g., SharePoint| |
|                                                              +------------------+ |
+-----------------------------------------------------------------------------------+

Outbound-Only Connector Mechanics

  • The Connector Agent: A lightweight Windows service installed on a domain-joined Windows Server inside the internal corporate network.
  • No Inbound Open Ports: The Connector initiates and maintains persistent outbound HTTPS connections over TCP port 443 to the Microsoft Entra Application Proxy cloud service endpoints (*.msappproxy.net and *.servicebus.windows.net).
  • Request Flow:
    1. The user navigates to the external URL (e.g., https://expenses.contoso.com).
    2. Microsoft Entra ID intercepts the request, validates the user's identity, and enforces Conditional Access policies (MFA, Compliant Device, User/Sign-in Risk).
    3. Upon successful pre-authentication, Entra ID places the request in the cloud proxy queue.
    4. The internal Connector picks up the request over its existing outbound control channel, retrieves the data from the internal backend web server, and streams the response back to the cloud service.

Single Sign-On (SSO) via Kerberos Constrained Delegation (KCD)

When backend web servers use Windows Integrated Authentication (Kerberos), the Private Network Connector uses Kerberos Service for User (S4U) extensions (S4U2self and S4U2proxy) to generate Kerberos tickets on behalf of authenticated users:

# Register Service Principal Name (SPN) on the Backend Web Server account
setspn -S HTTP/internalweb.corp.contoso.com CORP\svc-web

# Configure Kerberos Constrained Delegation on the Connector Server in Active Directory
# (Using Active Directory Users and Computers -> Connector Computer Object -> Delegation tab)
# Select: \"Trust this computer for delegation to specified services only\" -> \"Use any authentication protocol\"
# Add target service: HTTP/internalweb.corp.contoso.com

4. Choosing Between WAP and Entra Application Proxy

Both products publish internal web applications, so the exam tests the decision criteria rather than the click-path.

Decision driverChoose Web Application ProxyChoose Entra Application Proxy
Identity providerAD FS is already the token issuerMicrosoft Entra ID is the token issuer
Perimeter postureA hardened DMZ already exists and inbound 443 is acceptableSecurity policy forbids any inbound port
Conditional AccessEnforced by AD FS access-control policiesEnforced natively by Entra Conditional Access (MFA, device compliance, risk)
Public DNS / certificatesYou must publish external DNS records and manage public certificatesMicrosoft provides the *.msappproxy.net endpoint and certificate by default
Non-web protocolsNot supportedNot supported — escalate to Entra Private Access (12.5)

Exam trap: WAP is a role service of the Remote Access role, not a standalone role, and it is the only one of the two that belongs in a DMZ. A question describing a server that is deliberately not domain-joined and sits between two firewalls is describing WAP. Conversely, any question that stresses "no inbound firewall ports" while still describing browser-based access to an internal web app is describing Entra Application Proxy.

Loading diagram...
Application Publishing Security Boundaries: WAP (DMZ) vs Entra App Proxy / Private Access (Outbound)
Test Your Knowledge

A security architect is replacing a legacy perimeter DMZ reverse proxy with Microsoft Entra Application Proxy. What firewall configuration change should be implemented on the corporate perimeter firewall to support the new connector servers?

A
B
C
D
Test Your Knowledge

An administrator is configuring Single Sign-On (SSO) for an internal SharePoint intranet site published via Microsoft Entra Application Proxy. The intranet site uses Windows Integrated Authentication. What mechanism must be configured on the on-premises Private Network Connector server object in Active Directory?

A
B
C
D