A company runs a Windows web app in a Standard tier App Service plan. The release pipeline deployed version 2.4 to the staging slot, and an engineer then swapped the staging slot into the production slot. Ten minutes later, users report errors in production. You must restore the previous version to the production slot as quickly as possible, without rebuilding or redeploying any code.
What should you do?
A swap moves the previously staged app into production and the former production app into the staging slot. If production shows errors after the swap, swapping the same two slots again immediately restores the pre-swap state. This brings back the last known good version without rebuilding or redeploying anything.
- Not correct: Enable auto swap on the staging slot. Auto swap swaps a slot into production only after code changes are pushed to that slot, so it would need a new deployment and does not roll back the current swap.
- Not correct: Delete the staging slot from the web app. After the swap, the staging slot contains the previous production app. Deleting it removes the last known good version instead of putting it back into production.
- Not correct: Redeploy the previous build artifact to the production slot. This requires a new deployment, which the requirement forbids. The previous version is already available in the staging slot and can be swapped back.
- Correct: Swap the staging slot and the production slot again. After the swap, the staging slot holds the previous production app. Swapping the same two slots again returns both slots to their pre-swap states without any redeployment.
- Set Up Staging Environments - Azure App ServiceMicrosoft Learn