79474604

Date: 2025-02-28 05:45:34
Score: 1
Natty:
Report link

we notice that when we deploy a certain deployment slot, not all instances serve the same version

The reason you're facing this issue is due to ,

To resolve the issue ,

  1. Disable ARR Affinity:

Go to Azure App Service -> Configuration -> General settings -> set Session affinity ans session affinity proxy to off.

enter image description here

This will prevent from being stuck on old instances.

  1. If using slot swapping, enable Swap with Preview to ensure all instances are warmed up before swapping.

Thanks @ruslany for clear explanation, refer this Blog to learn how to warm up Azure Web App during deployment slots swap.

  1. Add the below setting in environment variables section of your Azure App Service.

enter image description here

This ensures that instances are refreshed following a deployment.

Please refer this MSdoc for better understanding of the above environment variable setting.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): this Blog
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @ruslany
Posted by: Sirra Sneha