Search code examples
azureazure-deploymentazure-deployment-slots

Azure: Can I mirror a deployment slot


After the staging deployment slot has been swapped to production, I know have the old production code sitting in the staging slot. This is fine in case I need to roll back. However, after a while, I know there are no problems.

It seems that the process is not that I should update the staging slot with the latest code in order to make it mirror the production slot. This can be a hassle to upload all over again.

Can I mirror the files from the production slot back to the staging slot so that they are in sync again?


Solution

  • I'm sure you can do this anyway. But you shouldn't.

    Do you work on production for staging ?

    I suggest you to use Continuous integration in Azure using Kudu

    Then you will just click Sync .