question

RachelTan-1402 avatar image
0 Votes"
RachelTan-1402 asked JayaC-MSFT answered

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JayaC-MSFT avatar image
2 Votes"
JayaC-MSFT answered

Hello @RachelTan-1402, 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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the explanation @JayaC-MSFT. It helps me a lot.

0 Votes 0 ·