DEV Community

Cover image for Deployment slot
Ugonna
Ugonna

Posted on

Deployment slot

This article outlines the process of using deployment slot in App service.
A deployment slot in Azure are additional instances of a web application that allow you to create different environments (slots) for testing, staging, or production.
Each slot can have its own configuration, such as AppSettings and Connectionstrings.
The original App Service deployment slot is called the production slot.
Below are the steps for the process:
Go to ugonnaappone, under deployment select deployment slot and click add slot
Image description
In the add slot, name it newfeatures and in clone settings from select ugonnaappone, then click add.
Image description
Originally ugonnaappone has 100% of the traffic
Image description
Then give ugonnaappone-newfeatures 10% traffic and save
Image description
During the testing period, if there was no complain in the 10% and there is satisfaction with the feedback then a swap can be done
Image description
The source can be added to production by clicking start swap. that is swapping the 10% of the newfeature back to production
Image description
Click on refresh it will show that the 10% that was given to the new feature has being swapped to production
Image description
Below is the swapped image
Image description
To create alerts, go to the web app and scrow down. click on monitoring then select alert
Image description
Click create an alert rule
Image description
In signal name, select Http Server Errors. Then click review and create
Image description
Click create
Image description
Go monitoring select enable application insight and click turn on application insights
In the application insights, enable it and click apply
Image description

Top comments (0)