Last week I changed the app service plan from Premium v2 P2V2 to Premium v3 P1V3 and now I get a short 15 - 20 seconds of error 503 after performing a swap with preview.
- Click Perform swap with preview
- Wait for staging slot to warm up, test, everything is working ...new version is running etc...
- Click complete swap...wait 15-20 seconds, service times out, 15 seconds later service is back
This did not happen with the Premium v2 P2V2 app plan and only started after I switched plans.
I already have WEBSITE_ADD_SITENAME_BINDINGS_IN_APPHOST_CONFIG = 1. This helped with issues in the past.
All environment variables have Deployment slot setting = true
I am using ApplicationInsights and recently switched to connection string from Instrumentation Key
Configuration:
Stack: .NET
.Net version: .NET 6 (LTS)
Instance Count: 1
We use to use lower tier hosting and then scale out when needed but found the sometimes adding a new instance had the same 503 error and we settled with just running a higher tier plan with a single instance.