title: Connect Azure IoTHub to application insights
body: <p>I am building an application in Azure, and I really like the application Insights &quot;Application Map&quot;. I would like to integrate IoTHub to the map, so I can check the entire stack from device to webinterface in one central place.</p>
  <p><strong>What I have tried:</strong></p>
  <p>I tried creating a diagnostic setting directly in the IoTHub.
  For destination I used the same Log Analytics workspace as my application insights is using.</p>
  <p>Results:</p>
  <p>I can see logs using the &quot;Logs&quot; tab under the IoTHub, but nothing in the application insights.</p>
  <p><strong>The actual question:</strong></p>
  <p>How do I connect the IoTHub to the application insights? If this is not possible, what do you normally do to check if everything is as it should be inside the IoTHub?</p>