Deployment Slots in Azure Websites are a way to minimize the impact of broken deployments. Deployment Slots provides a wide variety of deployment workflows. When you create an Azure Website then you are directly provisioned with the production slot. With deployment slots you can directly swap between a production slot and a non-production slot without any downtime.
There are a few scenarios in Azure Websites deployment slots:
- Staged Deployment : When you are building a website then you might want to test weather it is fully functional or not. You can do this in your non-production slot and when you are ready to push it to the production site you can swap the slots to interchange between non-production and production site.
- Incremental Deployment : If you want to make changes in the website without harming the production site you can create a non-production slot develop on it, test it then swap between the slots.
- Rolling back deployment: After swapping the deployment you realize that your site is not working the way it should work then you would probably roll back the deployment to undo the changes you have made.
Creating a New Deployment Slot
- Login in to your Portal at http://manage.windowsazure.com then go to your site’s dashboard.
- Under Quick Glance , click on Add a New Deployment Slot. (You must be in standard pricing tier)
- In the dialog box that pops up, name your deployment slot. This name will be used to recognize your production and deployment slot. You can copy the same website from the production slot or create a new empty slot for it.
- Click the check mark and your new deployment slot is set for you.
Now that you have created your new deployment slot. You can get this on Dashboard of the Web Apps in Windows Azure as shown below.
You can swap between slots by going to the Dashboard of the website and clicking on the swap button on the toolbar below.
Stay tuned for more.