An administrator is deploying a new version of a web application to an Azure App Service web app. The application is currently running in a staging deployment slot and needs to be swapped into the production slot. You need to configure a swap operation that allows you to test the new code under production configuration settings (such as connection strings and application settings) before any client traffic is routed to the new version.
Which sequence of actions should you perform to complete this process?
- 1Navigate to the App Service page, select Deployment slots, and click Swap.
- 2Set the Swap type to Swap with preview, and select the staging slot as the source and the production slot as the target.
- 3Click Start Swap.
- 4Browse to the staging slot's URL to test and verify the application behavior.
- 5Open the Swap dialog again and click Complete Swap.
Answer
The correct sequence of actions is: Navigate to the Deployment slots page and select Swap; configure the swap settings for a Swap with preview from staging to production; start the swap to apply target settings to the source slot; browse the staging slot URL to verify application functionality; and finally, complete the swap to route production traffic.
Starting a swap with preview applies the configuration of the target slot to the source slot, allowing validation before the final code swap occurs. Testing must be performed on the source slot while in this preview state before finalizing (completing) the swap or cancelling it.
Step-by-Step Solution
Key Concept
Azure App Service Deployment Slots Swap with Preview workflow
Estimated Time:2m 0s