Hello , Welcome to MS Q&A
Azure WebApps by default have ARR Affinity cookie enabled, this cookie pairs a client request to a specific server. However, Azure Web Apps is a stateless platform and, in an environment, where we are scaling the Website across multiple instances, the ARR Affinity cookie will be bound to a specific server. In case, the server is no longer in rotation, then all the requests corresponding to the ARR Affinity cookie will fail. It’s advisable to avoid the use ARR cookies in a scaled environment where we have multiple instances that serve our application requests. Disabling ARR cookies is a sustainable resolution for issues related to ARR Affinity cookies in scaled environments, where these cookies rely on the relationship with the worker machine they are paired with.
Hence , Azure App Service does support Session Affinity, but it's not directly tied to the "Manual" or "Rules Based" scale-out options. Instead, Session Affinity (also known as ARR Affinity) is a feature that ensures a user's session is consistently routed to the same instance of your application, regardless of scaling configurations.
To Summarize:
- Manual and Rules-Based scale-out options both support ARR Affinity (Session Affinity).
- ARR Affinity will ensure requests are routed to the same instance as long as that instance is available
Please let us know if you have any further questions
Kindly accept answer if it helps
Thanks
Deepanshu