I have an app service with two deployment slots: Production and Test. My current flow is that I push my changes to Devops, the build kicks off, and a release is created in Test.
I can then go to the Test url, do some testing, and when ready, I can swap the two slots.
What I would like to do is schedule a time for a swap so it's automated at say, 2 or 3 am when traffic is almost nil. Is there a way to automate the swap either through the interface (99% sure that's not available) or through a script that gets triggered somehow?
Deployed .NET Web App to the Azure App Service having deployment slots - Staging and Production.
In Pre-deployment Conditions > Triggers > Schedule - Monday to Friday at 6 AM is set.
I have created the release and the production slot is evaluated after staging slot deployment and scheduled time:
You have to set the schedule on Pre-deployment conditions of the Prod Slot in the Release Pipeline:
Result:
Updated Answer:
Changed Prod Slot Functionality from deployment to Swap Slots.
Schedule worked for the Swap Slots Stages in release Pipeline.