title: How do you disable App Insights remote dependency tracking in a .net core web job
body: <p>I have a .net core 3.0 web job which is using the Microsoft.Azure.WebJobs.Logging.ApplicationInsights nuget package to log its logs to Application Insights.</p>
  
  <p>This was all great until I saw the azure bill we were generating and the cost of logs was more than anything else! Following a bit of diagnosis I discovered it was due to remote dependency logging.</p>
  
  <p>According to this article logging sql queries and cosmos are enabled automatically:</p>
  
  <p><a href="https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-dependencies" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-dependencies</a></p>
  
  <p>and looking at that logs I can see every sql query being run. Now I'm sure in the right circumstance this is very useful to debug with, but as the nature of the app is it runs a lot of queries which therefore is causing many gigs of logs that I don't really need.</p>
  
  <p>What I can't see though is an easy way to turn it off?</p>