Azure Change App Service HTTP Ping URL and Interval
/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 .
![](https://is2-ssl.mzstatic.com/image/thumb/Purple116/v4/aa/20/7d/aa207d3d-c050-14b9-f084-9e0e2afaa646/AppIcon-Primary-0-1x_U007emarketing-0-7-0-85-220.png/460x0w.webp)
OmniLock - Block / Hide App on iOS
Block distractive apps from appearing on the Home Screen and App Library, enhance your focus and reduce screen time.
![](https://is2-ssl.mzstatic.com/image/thumb/Purple116/v4/17/91/dc/1791dca0-047b-188c-23d3-00d7b3f33777/AppIcon-0-1x_U007emarketing-0-7-0-85-220.png/230x0w.webp)
DNS Firewall for iOS and Mac OS
Encrypted your DNS to protect your privacy and firewall to block phishing, malicious domains, block ads in all browsers and apps