Why does my Azure Web App with a custom domain 404 intermittently when not used? (No logs, TLS/SSL)

Mark Infante 0 Reputation points
2024-04-25T18:28:42.93+00:00

I have just recently started running my frontend web application full time. It is an 'always on' application with a custom domain and SSL/TLS.

Often times when I try to hit the custom domain, the website will give the usual unsecure messaging for plain http connections, where you have to jump through some hoops ("this is unsafe") in order to reach the landing page. Then, when bypassing it will bring me to the Azure web app default 404 page.

If I restart the app, flush my dns, and wait 10 minutes, usually this problem will go away. If I repeatedly try to hit the application while flushing my dns and clearing cache, eventually I can get in. I'm wondering why my application "goes down" when not used, why I cannot track this behavior, and why 'always on' and health tracking does not help.

Has anyone experienced this? I've heard whisperings online that I may have to set up a job to hit the frontend every 10 minutes from now until eternity. I'm not sure if that solution is related but I thought I'd mention it anyway.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,912 questions
{count} votes