RSS

Azure Change App Service HTTP Ping URL and Interval

In Azure app service, I want to change the keep-alive time period and want to change the HTTP ping (keep-alive) URL to /status, the default keep-alive URL is /.

Issues Description

In Azure app service, I want to change the keep-alive time period and want to change the HTTP ping (keep-alive) URL to /status, the default is /.

Answer from Azure support

I can not find proper answer so send request to Azure support.

The short answer is there is NO way to change it for now (April, 2020).

There is more detail:

It is not possible to control the default endpoint of keep-alive connection https://docs.microsoft.com/en-us/azure/app-service/configure-common#configure-general-settings.

Also there is no way of changing the timeout in a shared app service environment since the request originates from the load balancer, this can only be achieved if the instance is not in a shared environment and using azure load balancer.

https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-overview

https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-tcp-idle-timeout#tcp-idle-timeout

You can create a cron job for achieving this by hitting the /status after preferred time and checking if the status is 200. After implementing the custom keep-alive cron job you can always disable the default always on feature in app service. https://docs.microsoft.com/en-us/azure/app-service/faq-availability-performance-application-issues#how-do-i-decrease-the-response-time-for-the-first-request-after-idle-time.