0

I have an Azure Function instance. I would like to execute a KQL query to fetch some data from an Azure app insights instance of another app, then push the data to an on-prem database.

I am aware that we can send a GET request to the REST endpoint of the app insights via an API token, but is there a better way to do this? Ideally, I would like to directly execute the query somehow, since my Azure function resides in the same resource group.

Vin Shahrdar
  • 1,151
  • 1
  • 12
  • 30
  • But how easy do you expect it to be? There's always going to be an SDK or something you'd need to use to get the data. "I would like to directly execute the query somehow ..." and you have that through the REST endpoint. – Skin Apr 19 '22 at 01:03
  • @Skin I was just wondering if there was a direct integration of some sort. Right now, I send the GET request, parse the data, transform it, etc. – Vin Shahrdar Apr 19 '22 at 15:01
  • 1
    I can only think of this https://www.nuget.org/packages/Azure.Monitor.Query/ – Peter Bons Apr 19 '22 at 18:25

0 Answers0