QuestionQ135

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: Turn on auto swap for the Testing slot. Deploy the app to the Testing slot.

Does this solution meet the goal?

Explanation

Auto swap warms the source slot before swapping, but enabling it does not configure custom initialization actions. For Windows-hosted Azure App Service apps, the applicationInitialization element in Web.config specifies custom warm-up actions, and App Service waits for that warm-up to finish before swapping with the target slot.

Learn more

Community Discussion

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