Azure website outage maintenance page
Asked Answered
H

2

11

We have multiple webApps hosted on Azure. I want to design a consistent and standard mechanism to show an "Under Maintenance" static html page in case of Azure outage (planned and unplanned). At the moment we are not leveraging Availability sets or Load Balancer.

Any ideas are appreciated?

Harlot answered 31/1, 2018 at 21:36 Comment(3)
what kind of webapps do you have (.NET, Python, Java)? What kind of service are they running on (App Service, VM, etc.)?Absolute
Mix of .Net, WebApi and Python. They are running on ASE (Application Service Environment).Harlot
request --> Traffic Manager --> additional endpoint outside Azure that you only bring up when s** hits the fanfare.Coryden
M
24

I would suggest:

  1. Add a new deployment slot called "maintenance" to your web app service.
  2. Create a separate web project that redirects all URL requests to a maintenance page message, and publish this project to the maintenance slot.
  3. When you're ready to take your site down, swap the slots between your production slot and the maintenance slot.
  4. When your maintenance is complete, swap the slots back and your site should be up and running.
Monstrosity answered 19/4, 2018 at 20:56 Comment(1)
Depending on how your slots are initially populated (Azure release pipelines) you need to excercise some discipline with this technique, in order to avoid inadvertantly deploying old releases of your application into the production slot. This has the potential to happen if you fail to swap the maintenance slot back after use, then deploy to production, then subsequently attempt to swap into maintenance mode.Murex
F
1

Azure application gateway enables this features where you can define custom page. You can add listener rule to redirect to custom page.

Steps to follow to enable in application gateway Reference Document

enter image description here

Fluvial answered 6/5, 2021 at 9:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.