Azure app service swap slot not working?

Ilyas Dhin 1 Reputation point
2020-10-19T15:33:35.027+00:00

Hi

I have pushed my changes to an azure staging lot that I have configured.

I have then attempted to swap this slot with production. Azure portal says it has worked but it hasnt actually done the swap. Both the slot and the production code as unchanged.

Anyone know what is causing this?

We cant get our changed pushed to production because of this issue...

Our code gets deployed and built using Azure Dev op pipelines. We have a manual trigger to push to production, which just swaps the slots. This doesnt work either. Trying it in the portal doesnt work....

This means I am stuck!

Any suggestions?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,972 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2020-10-20T08:53:29.89+00:00

    Thanks for asking question! You may want to know that if there any error occurs during a slot swap, it's logged in D:\home\LogFiles\eventlog.xml. It's also logged in the application-specific error log.

    Also, to help you on this there is App Service Diagnostics feature which helps you to troubleshoot your app with no configuration required. When you run into issues with your app, App Service Diagnostics points out what’s wrong and guide you to the right information to more easily resolving the issues.

    Go to Azure Portal > Select your App Service > on left side of menu click on Diagnose and solve problems > select configurations and Management > select check swap operations from left menu.

    https://azure.github.io/AppService/2020/03/23/A-New-Look-for-App-Service-Diagnostics.html

    33683-demo1.jpg

    You may also refer to below links might be helpful:

    https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots#troubleshoot-swaps

    https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/

    Let us know incase issue persists.


  2. catriname 1 Reputation point
    2020-10-21T00:06:11.353+00:00

    @Ilyas Dhin - i deleted a prev reply because i got a bit of a lead.

    my previous reply was:
    I'm having a similar issue. Twice now, I deploy to slot, verify changes in slot and then swap. Slot gets production website, but Production does not get the site in slot.
    I've checked above "Check Swap Operations" but only show 2 successes, 0 failures.
    Any other suggestions on how I might fix this?
    Thank you!

    we recently changed our custom domain to add ssl and cdn. i currently believe the problem is cdn cache: https://learn.microsoft.com/en-us/azure/cdn/cdn-purge-endpoint

    I am looking over docs and if this is the case, I will update. Apologies for the broken replies.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.