Perform the following prerequisite steps:
- Create a new Application Insights account, if you don't have one already.
- Make sure you have a running application that integrates with Application Insights. You can learn how to integrate your application with Application Insights at https://docs.microsoft.com/en-us/azure/application-insights/app-insights-asp-net.
It is recommended to create this recipe and the following two in a separate Azure function app that is based on runtime v1, as these templates are not available in v2 yet. By the time, if you don't see the Application Insights Scheduled Analytics template, then change the Azure Functions runtime version to v1 by setting the value of FUNCTIONS_EXTENSIONS_VERSION to ~1, as shown in the following screenshot, in the Application settings of Azure Functions: