How do deployment slots and swap work?
IntermediateConceptCompute and App Platforms
Answer
A slot (staging) is a live app on the same plan. You deploy to staging, test it, then swap:
az webapp deployment slot swap -g rg -n app-shop --slot staging --target-slot production
During a swap, App Service applies production settings to the staging instances, warms them up (hits the root path or applicationInitialization paths), then switches routing. Settings marked slot setting (sticky) stay with the slot, which is how prod keeps its prod database connection string. Swap back to roll back. Auto-swap can chain this into CI.
More on Compute and App Platforms
What are the main VM families and how do you pick one?BeginnerAvailability sets vs availability zones vs VMSS flexible orchestration.IntermediateWhat is a Virtual Machine Scale Set and how does autoscale work?BeginnerWhat are VMSS upgrade policies?IntermediateWhat are Spot VMs and where do they fit?IntermediateWhat is the temporary disk on a VM and why does it matter?Beginner