Comments on: Azure App Service Deployment Slots Tips and Tricks https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/ Azure App Service Features and Best Practices Tue, 20 Jun 2023 02:31:44 +0000 hourly 1 https://wordpress.org/?v=6.2.16 By: Blair https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/#comment-48875 Tue, 20 Jun 2023 02:31:44 +0000 https://ruslany.net/?p=424386#comment-48875 In reply to Eric.

Hi Eric, did you ever find confirmation about this behaviour? We’re now having the same questions

]]>
By: Mattias Engman https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/#comment-20330 Mon, 08 Feb 2021 12:53:15 +0000 https://ruslany.net/?p=424386#comment-20330 In reply to Ruslan.

Yes, BUT… When we later on swap staging with production, then I guess that the APP Service Plan meant for staging will go into production? So if i move all my staging slots to an App Service Plan with less power, and maybe just running 1 instance… Then after swap to production, the App Service plan with less power and one(1) instance will be the production App Service Plan.. Isn’t that the way it works? Kind of the loadbalancer will just change the traffic to the apps currently on staging VM’s/App Service Plan? Or?

]]>
By: Raavi https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/#comment-19487 Tue, 05 Jan 2021 03:14:01 +0000 https://ruslany.net/?p=424386#comment-19487 In reply to Ruslan.

Ruslan – Had no idea that was possible, actually I searched for a while looking for this exact solution.

Don’t think it’s mentioned anywhere. Def warrants getting added to the article!

]]>
By: Ruslan https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/#comment-19461 Mon, 04 Jan 2021 20:48:05 +0000 https://ruslany.net/?p=424386#comment-19461 In reply to Raavi.

Hi Raavi,

It is possible to move the slots to different app service plans. That way the production and staging slot will run on different VMs and will not interfere with each other.

Here is the explanation how to move an app to a different app service plan. The same steps apply to slots.

Move an app to another App Service plan

]]>
By: Raavi https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/#comment-19276 Thu, 31 Dec 2020 16:47:29 +0000 https://ruslany.net/?p=424386#comment-19276 Hi Ruslan – we’re trying to migrate off of a cloud service classic deployment to app services and I’m finding the fact that the slots share the same resource to be almost impossible to work with.

Specifically – we see that whenever we do a swap the CPU goes real high while it does the warmup and as a result the production workload’s response times go almost 10x slower!

I see lots of discussion but no resolution anywhere on this – do you recommend production apps that need to keep response time in check during deployments stay on cloud services?

]]>
By: Ruslan https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/#comment-16538 Fri, 02 Oct 2020 21:59:38 +0000 https://ruslany.net/?p=424386#comment-16538 In reply to Ferdi.

Hello Ferdi – i’ve replied on stackoverflow.

]]>
By: Ruslan https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/#comment-16536 Fri, 02 Oct 2020 21:52:18 +0000 https://ruslany.net/?p=424386#comment-16536 In reply to Joss.

Hello Joss, thanks for contacting me about this.

Normally, after the swap the staging slot should have the code that used to be in production and it would remain there until you deploy or make changes to it. The goal is exactly as you’ve said – to be able to roll back and put it back into production in case of an emergency. That’s the current behavior of swap for regular windows app services. I would expect that this would be the same for linux app services with docker containers, but sounds like that’s not the case. I’ll check this with the development team to confirm if this is expected.

]]>
By: Joss https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/#comment-16480 Wed, 30 Sep 2020 11:19:02 +0000 https://ruslany.net/?p=424386#comment-16480 We have an app that needs two app settings to be slot settings. We deploy the new code to stage slot, when it’s checked we see the code changes, it’s all fine. We then swap and the new code is production and we can see the new code, it’s all fine. When we check the now stage slot for a few seconds it doesn’t have the new code change (We expect this and this is what we want, the old code to roll back if needed) but then after a few seconds, the now stage slot with the old code restarts and has the new code (same ad prod slot).

This means there is no longer a way to rollback to the previous prod state if we wanted to. My understanding of this is because of the two sticky slot app settings, it sees it as a change and does a restart. We’re using linux app service and a docker container btw.

Does this basically mean if you need to use slot settings in the app config, you can never benefit from rolling back in an emergency?

Thanks

]]>
By: Ferdi https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/#comment-16477 Wed, 30 Sep 2020 06:24:47 +0000 https://ruslany.net/?p=424386#comment-16477 Hi,

How do I deal with the “Always On” combined with “HTTPS only” issue in an Azure Appsetting?

See https://stackoverflow.com/questions/64097262/how-to-ignore-https-only-azure-appservice-custom-domain-setting-for-always-on

Appreciate the help

]]>
By: Alexander Shakhov https://ruslany.net/2019/06/azure-app-service-deployment-slots-tips-and-tricks/#comment-9960 Wed, 29 Jan 2020 08:17:16 +0000 https://ruslany.net/?p=424386#comment-9960 In reply to Jason Freeberg.

Hi Jason,

Yes, Always On is disabled on staging. We release new version of peek hours using slot swaps. During peek hours we would like for staging to go down (IIS app poll recycling due inactivity) and free App Service Plan memory.

]]>