Azure Batch Application Insights From A Task Running .Net Core 3.1 Console Application

AzMagni 1 Reputation point
2020-05-08T15:43:44.21+00:00

I'm trying to get application insights to work in azure batch job/task while running through a .net core 3.1 console application.

When I run the console app through Visual Studio debug or directly on a node in the batch pool, I get all the appropriate telemetry and logs. However when I setup a task to run the console app I'm not getting any data in application insights.

Guides I looked through:

Is there anyway to get the AppInsights data when running the console app through the task ?

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
336 questions
{count} votes

1 answer

Sort by: Most helpful
  1. jafreck 6 Reputation points Microsoft Employee
    2020-05-27T22:37:23.66+00:00

    You are free to use application insights as required on your Batch pools, but the setup and configuration will need to be driven through your code. Batch does not directly integrate with application insights or other custom logging Azure services.

    The approach you described running the console app through your Task is possible. It is the responsibility of the Task's command line to properly set up or access the credentials required for log emission.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.