Web App for Containers (Linux) version of app_offline.htm

558 Views Asked by At

Occasionally, there are times when a system needs to undergo maintenance for a short time. Standard Web Apps handle this by redirecting all traffic to an app_offline.htm if the file exists in the root directory (wwwroot). What is the equivalent for a Linux Web App for Containers instance?

I tried using Kudu's Bash terminal by echoing the minimum html contents into an app_offline.htm but it isn't working.

One thing I was looking into would be having a specific container image that is for maintenance, but that doesn't seem very elegant.

Eventually, I would like to be able to automate this via Azure DevOps.

1

There are 1 best solutions below

2
On

Are you able to create an app setting with the name SCM_CREATE_APP_OFFLINE and a value of 1 to see if this allows the creation of a app_offline.htm file?