The goal of this project is to demonstrate how to create an Azure WebJob that is triggered on a Timer and will utilize Application Insights.
This project in written in C# and uses .NET 4.7.
To get things working, an azure storage connection string will be needed, as well as an Application Insights Instrumentation Key. These values will be placed into the appsettings.json file.
{
"AzureWebJobsStorage": "AzureStorageConnectionString",
"APPINSIGHTS_INSTRUMENTATIONKEY": "APPINSIGHTS_INSTRUMENTATIONKEY",
"ConnectionStrings": {
"AzureWebJobsStorage": "AzureStorageConnectionString"
}
}
Microsoft.Azure.WebJobs
Microsoft.Azure.WebJobs.Core
Microsoft.Azure.WebJobs.Extensions
Microsoft.Azure.WebJobs.Host.Storage
Microsoft.Azure.WebJobs.Logging
Microsoft.Azure.WebJobs.Logging.ApplicationInsights
Microsoft.Azure.Storage.Common
Microsoft.ApplicationInsights
Microsoft.ApplicationInsights.Channel
Microsoft.ApplicationInsights.Extensibility
Microsoft.Extensions.DependencyInjection
Microsoft.Extensions.Logging
Microsoft.Extensions.Logging.Console