Sending application telemetry details via email
One of the activities of our application, once live, will be able to receive a notification email with details regarding health, errors, response time, and so on, at least once a day.
In this recipe, we'll use the ability of Azure Functions' timer trigger to get all the required values from Application Insights and send the email using SendGrid. We'll look at how to do that in this recipe.
Getting ready
Perform the following steps in the first instance:
- This recipe is dependent on the application settings created in the previous recipe, Pushing custom metrics details to Application Insights Analytics. Please ensure to add them before running the code of this recipe.
- Create a new SendGrid account, if you do not already have one, and get the SendGrid API key.
- Create a new Application Insights account, if one has not been created already.
- Make sure that you have a running application that integrates...