How do I take my App Service offline, test the new app, then go online?

David Thielen 2,421 Reputation points
2024-05-16T14:38:48.1733333+00:00

Hi all;

When I go to push my site from staging to production, I often need to run a SQL script to update the database schema. So is there a way to:

  1. Take the site offline
  2. Run the SQL script
  3. Swap from staging to production
  4. Test the production site
  5. Make the site online

thanks - dave

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

1 answer

Sort by: Most helpful
  1. Manu Philip 17,021 Reputation points MVP
    2024-05-16T15:02:24.11+00:00

    Hi,

    App Offline file should help!

    User's image

    You may read more details here: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/app-offline?view=aspnetcore-8.0