Neil Thompson
Neil Thompson

Reputation: 6425

How to 'renew' fixed Azure Website Production Slot?

If I have a 'Standard' App Service Plan with 5 websites and two instances.

One website is behaving badly (restarting randomly*) and displaying weirdly (eg: portal > Monitor never shows 'Response Time' data; Daas 'Diagnose' Now' just errors etc.)

This website has been running for two years. Various experiments have been tried (installing things like New Relic, then 'removing' them) so I'm thinking it's time for a fresh start because I'm worried that all these old settings are confusing things and causing issues: I want to try and move this web site off it's existing 'settings' to a clean slate

I tried:

  1. Created new deployment slot (choosing "Don't clone configuration from an existing slot" (in the hope of losing old settings and having a clean start). Slot is called newstage).
  2. Confirmed that newstage runs and has good monitor (ResponseTime is back. No more 'could not retrieve metrics' errors in portal)
  3. Swapped newstage with live
  4. Confirmed that experiment failed. The swapped deployment has inherited all the old problems.

My Question is: It looks like new deployment slots are created anew and work perfectly. Apart from deleting the webapp and re-creating it (I can't do this) is there any way I can make the fixed 'Live' slot as perfect as the new deployment slots?

*INFO] Terminating RD000Dabc. 11/5/2015 3:25:32 PM vs (now) 11/5/2015 3:25:47 PM

Upvotes: 1

Views: 161

Answers (1)

David Ebbo
David Ebbo

Reputation: 43193

What you are doing should result in a very clean state after you swap the clean slot into production. All of the files are swapped, so file-wise, there is nothing left from before.

The only thing that could remain is if you have any App Settings marked as 'slot setting' (it's a checkbox in the Preview Portal).

There is also a slim possibility that something got corrupted at a level that you can't control. Can you share your site name, either directly or indirectly? This will help us investigate.

Upvotes: 2

Related Questions