title: How to setup Application Insights with Asp.Net-Core HealthChecks
body: <p>Asp.Net Core released version 2.2 and together with it comes HealthChecks feature. (<a href="https://blogs.msdn.microsoft.com/webdev/2018/12/04/asp-net-core-2-2-available-today/" rel="noreferrer">Read more</a>). One of the features it has is to push health check results to Azure Application Insights. But I have not found any way how to see those results in Azure portal. To send the results I am using following extension:</p>
  
  <pre><code>        services.AddHealthChecks()
              .AddSqlServer("...")
              .AddApplicationInsightsPublisher();
  </code></pre>
  
  <p>Is there a way to view those Health Check reports in Application Insights?  </p>
  
  <p>EDIT 1: I took the example from official <a href="https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks#healthcheck-push-results" rel="noreferrer">github docs</a>.</p>
  
  <p>EDIT 2: If I go to the Azure portal query analytics I see following results:</p>
  
  <p>Querying <code>requests</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/j3Dnz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/j3Dnz.png" alt="enter image description here"></a></p>
  
  <p>Querying <code>customEvents</code></p>
  
  <p><a href="https://i.stack.imgur.com/0MvYh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0MvYh.png" alt="enter image description here"></a></p>
  
  <p>here: <code>GET /health</code> is my healthCheck endpoint. By querying <code>requests</code> logs I can see if health check failed or not, but I want to see more details about each health check, also I don't think I need any extension for this, so I don't understand what <code>AddApplicationInsightsPublisher()</code> actually does.</p>