Connect to on-premises HTTP(S) endpoints using Azure Application Gateway

Azure Application Gateway provides a dedicated, private connection from serverless compute to private APIs and web servers, including endpoints in your on-premises network. Serverless compute connects to the Application Gateway through Azure Private Link, and the Application Gateway routes requests to your backend resources.

What problem it solves

Azure Application Gateway:

  • Establishes a dedicated, private connection from serverless compute to private APIs and web servers.
  • Provides a fully managed layer 7 HTTP(S) reverse proxy and load balancer.
  • Supports path-based routing (for example, /api compared to /data), host-header routing, and cookie-based session affinity.
  • Supports Web Application Firewall (WAF) protection and TLS termination.

When to use Azure Application Gateway

Use Azure Application Gateway when serverless compute communicates with HTTP(S) APIs, web services, microservices, or on-premises endpoints that require layer 7 routing, WAF protection, or a fully managed proxy.

If a private network gateway is not an option and you connect over a non-HTTP or layer 4 protocol, such as PostgreSQL, MySQL, SQL Server, Redis, or Kafka, use an Azure Private Link service with a Standard Load Balancer instead. See Connect to on-premises resources using a Private Link service.

Set up Azure Application Gateway

To set up Azure Application Gateway for serverless compute:

  1. Create two subnets in your VNet: one for the Application Gateway and one for the Private Link configuration.

  2. Request a Standard public IP address.

  3. Set the frontend IP address type to Public or Both. Don't choose Private, and don't use network isolation mode.

    Application Gateway doesn't support a Private Link configuration for tunneling traffic through private endpoints when it uses a private-only frontend IP configuration.

  4. Configure your listener, routing rules, and backend pools.

  5. Configure Private Link on the Application Gateway, and create a private endpoint to it in your network connectivity configuration (NCC). See Configure private connectivity to Azure resources.

Serverless compute reaching on-premises APIs and web servers through an NCC private endpoint and Azure Private Link to an Application Gateway.

Considerations

Review the following before you use Azure Application Gateway:

  • Configure network security groups (NSGs) on the Application Gateway subnet with the following rules:
    • Allow inbound traffic on ports 65200–65535 from the GatewayManager service tag.
    • Allow inbound traffic on all ports from the AzureLoadBalancer service tag.
    • Allow inbound traffic on ports 80 and 443 for your application.
    • Allow outbound traffic to the internet.
  • Bind your HTTP listener to the private IP frontend, and use NSGs to block internet access on the public IP frontend.

Additional resources