Azure Deployment Slot is Awesome functionality for regular(Full) production deployment build process using Deployment Slot Swap functionality.
But sometimes we need to deploy the hotfix on production, like need to change only in the web.config or some static files which really don’t required the complete deployment life cycle, then how we can do the hotfix deployment(partially deployment) using staging slot swapping functionality as my staging slot is not up-to-date, its contain the old stuff( before the last build deployment)
Consider the below scenario:
Deployed full site to staging before production, now staging is latest
Swap to production, now production is latest, staging become old
Now suppose, we need to deploy the hot fix by changing the value in the web.config, which we can directly change in the staging slot without process with full deployment, but we cannot swap the staging slot with production as staging slot don't have the current version of the website?
I wish there should be one button called copy from production addition to swap button, so firstly we quickly copy the production content into staging slot, change on staging slot, verify the changes and boom for production swap.
What should be the best approach for this type of deployment? Please suggest