Azure App Serivce load balancer

Jeff Trotman 6 Reputation points
2022-03-03T19:05:35.657+00:00

I'm having a hard-time finding documentation about the load balancing providing as part of Azure App Service. Not Application Gateway or Azure Load Balancer, but the one that's included in Azure App Service that facilitates scaling out to multiple instances.

A prospect for our SAAS application that's hosted in Azure App Service is asking if HTTPS ends at the load balancer or at the application server. I can't find documentation that says this for sure. When I do a Log Stream in the App Service, I see some requests to http://... so I assume that the traffic between the load balancer and the web server hosting our application is http as opposed to https, but it would be nice to see this documented somewhere.

Does anyone know for sure how this works? Even better - is there documentation explaining this?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,965 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2022-03-04T19:25:27.51+00:00

    anonymous user, Thanks for the great question.

    On App Service, front ends terminate SSL connection for all HTTPS requests for all applications and any type of certificate.
    The front end then forwards the request to the designated worker for a given application.

    That means that TLS/SSL requests never get to your app. You don't need to, and shouldn't implement any support for TLS/SSL into your app.
    The front ends are located inside Azure data centres. If you use TLS/SSL with your app, your traffic across the Internet will always be safely encrypted.
    The request that makes it to the worker your app is on is always going to be HTTP.

    Furthermore, the front end is a layer seven-load balancer, acting as a proxy, distributing incoming HTTP requests between different applications and their respective Workers.
    Currently, the App Service load-balancing algorithm is a simple round robin between a set of servers allocated for a given application.

    HttpsOnly (setting/feature available on the Portal) will only impact http request (App Service LB will redirect http to https). If the incoming is already https – then no-op.

    Kindly check these docs, which provides more info on your ask:
    Inside the Azure App Service Architecture (provides a detailed insights into the architecture)

    Security in Azure App Service

    -----
    To benefit the community find the right answers, please do mark the post which was helpful by clicking on ‘Accept Answer’ & ‘Up-Vote’.

    3 people found this answer helpful.

  2. Rijwan Ansari 766 Reputation points MVP
    2023-03-14T05:18:43.0666667+00:00
    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.