How do you swap slots safely?
- Deploy the new version to a staging slot.
- Test thoroughly using the staging URL.
- Swap staging → production via Azure Portal, CLI, or PowerShell.
Example using Azure CLI:
az webapp deployment slot swap \
- -resource-group MyResourceGroup \
- -name MyAppService \
- -slot staging \
- -target-slot production