Azure App Service - ARR Affinity not work

CHEN XIAOJIE 96 Reputation points
2022-04-13T09:21:18.637+00:00

The value of ARRAffinity is changing. I just want to use one instance all the time.

192646-image.png
192616-image.png

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,000 questions
{count} votes

Accepted answer
  1. Takahito Iwasa 4,851 Reputation points MVP
    2022-04-14T00:50:43.2+00:00

    Hi, @CHEN XIAOJIE

    Thanks for the additional information!
    I understand that you're not working well because of the combination of Front Door and App Service.
    The App Service ARR passes the cookie of the App Service origin domain to the browser instead of the Front Door domain, so it will not work via the Front Door.

    If the backend origins are spread across multiple, you can enable Session Affinity for the Front Door.

    https://learn.microsoft.com/en-us/azure/frontdoor/routing-methods#affinity

    If you have one backend origin and you want to distribute it within it, you may be able to enable ARR Affinity in the following ways:
    Try binding the same custom domain as Front Door to the App Service for reference below. Doing so may treat the client as a valid cookie and enable ARR.

    https://learn.microsoft.com/en-us/answers/questions/417541/testing-in-production-with-custom-domains-and-azur.html

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.