Sites Under Construction after deployment
We have lots of app services and couple of them goes under construction after deployment. There are no pattern in this issue. Every time, random sites goes under construction and never restarts automatically. We have to go through each site to make sure all sites are up and running.
We found one resolution where it asks to remove app_offline.htm from root folder. But we couldn't find such file.
Could you guys please help us out.
The app_offline.html you're referring to is a popular method in ASP.NET.
Is the application you deployed ASP.NET?
If it's ASP.NET and the file isn't found, can I share the file structure and error message details?
@Sumit Mahajan why not use App Service Health Check rather than deleting the app_offline.htm file?
@Takahito Iwasa , The application is built in .Net core. And yeah, if you could share the details, would be helpful.
@Ryan Hill , actually we do only have one instance per web app. And we do not use load balancer. So, do you think this feature will work in our case?
I found 2 options in Azure App Service Deploy related to this issue. (Attached screenshot)
- Take App Offline
- Post Deployment Action
In the second option, it asks for script. But I don't know how to write that script.
Please let me know if any of these is helpful.
@Sumit Mahajan , you can use health check to check to see if your app service is running post deployment. With regards to the deployment task you're using, Take App Offline does create the app_offline.htm file, see Azure App Service Deploy task Prerequisites for the task. I would uncheck Rename locked files but remaining two options are fine.
Sign in to comment