title: Programmatically Query Azure Application Insights Analytics
body: <p>Based off <a href="https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/log-query-overview" rel="nofollow noreferrer">Overview of log queries in Azure Monitor</a>, is there any method to programmatically query using .NET the application insights analytics and download the results?</p>
  <p>Like say something like this in my C# application:</p>
  <pre class="lang-cs prettyprint-override"><code>application_insight_analytics.connect(ApplicationInsightsConnectionString)
  application_insight_analytics.query(query).toList();
  </code></pre>