5

We have an azure app service, with a production slot and staging slot. We often deploy to staging, do some testing and swap to proc. We do NOT use slot specific settings because they cause the app to restart upon swapping and we want swapping to be instant and transparent to users.

Question: How can I determine programmatically what slot the app is currently running on, as of right now?

We are aware of the WEBSITE_HOSTNAME environment variable, however it is useless since its value doesn't change upon swapping (as verified in Kudu). Also, I believe that a process must restart in order to refresh the value of an environment variable that was changed after the process started.

Clement
  • 3,990
  • 4
  • 43
  • 44

0 Answers0