How do warm up work on Deployment slot in Azure App Service

Rachel Tan 21 Reputation points
2021-07-11T06:44:43.613+00:00

I do have an Azure App Service API app which is developed and deployed on a deployment slot named Testing. I have another deployment slot named Production. The auto swap is enabled for the Testing slot.

Do I need to include applicationInitialization configuration element in web.config to ensure that scripts run and resources are available before a swap operation occurs?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,844 questions
0 comments No comments
{count} votes

Accepted answer
  1. JayaC-MSFT 5,526 Reputation points
    2021-07-12T07:22:36.197+00:00

    Hello @Rachel Tan , Welcome to Microsoft QnA. Thank you for the question.

    Once the slot starts getting prepared for the swap, a warm up request is made to the root directory of the site on every instance. However if that is not enough , then may make request to all the important routes in the application or prepopulate in-memory cache. Yes, application initialization configuration would help in that case: iis-80-application-initialization

    deploy-staging-slots- Specify custom warm-up

    Please refer to deploy-staging-slots to understand what happens during a swap.

    Please let me know if this helps.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful