Any application is only useful for any business if it is up and running. Applications might go down for multiple reasons; the following are a few of them:
- Any hardware failures, such as a server crash, bad hard disk, or any other hardware issue—even an entire data center might go down, although this would be very rare
- There might be software errors because of bad code or a deployment error
- The site might receive unexpected traffic and the servers may not be capable of handling this traffic
- There might be cases where your application is accessible from one country, but not from others
It would be really helpful to get a notification when our site is not available or not responding to user requests. Azure provides a few tools to help by alerting us if the website is not responding or is down. One of them is Application Insights. You will learn how to configure Application Insights to ping our Azure Function app every minute, and set it to alert us if the function is not responding.