QuestionQ137

VerifiedDevelop Azure compute solutions

You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.

You need to ensure that scripts run and resources are available before a swap operation occurs.

Solution: Modify the web.config file to add the applicationInitialization configuration element. Define custom initialization actions that run the scripts.

Does this solution meet the goal?

Explanation

Azure App Service supports custom pre-swap warm-up through the applicationInitialization element in Web.config. The platform runs the specified initialization actions and waits for the custom warm-up to finish before completing the slot swap.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!