QuestionQ136

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 off auto swap. Update the app with a method called statuscheck that runs the scripts. Turn auto swap back on, and deploy the app to the Production slot.

Does this solution meet the goal?

Explanation

App Service requires a configured warm-up path or application-initialization configuration to call an endpoint before a slot swap. Adding a statuscheck method alone does not cause App Service to invoke it; WEBSITE_SWAP_WARMUP_PING_PATH must be set to a path such as /statuscheck, or equivalent application initialization must be configured.

Learn more

Community Discussion

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