Sending application telemetry details via email

One of the activities of your application, once live, will be to receive a notification email with details about health, errors, response time, and so on, at least once a day.

Azure Functions provides us with the ability to get all the basic details using a function template with code that is responsible for retrieving all the required values from Application Insights and the plumbing code of framing the email body and sending the email using SendGrid. We will look at how to do that in this recipe.