I need to fetch records from Azure application insights using C#.
I have tried using the below approach, but it requires an app service to be created in Azure and I want to avoid it.
https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-insights-azure-ad-api
I have also followed this answer as well, OP has suggested using https://www.nuget.org/packages/Azure.Monitor.Query but it looks very old, so I would like to know if is this still valid.
Alternative to https://www.nuget.org/packages/Microsoft.Azure.ApplicationInsights/
So I am confused, Could you please help me with the correct approach? My requirement is not to create any extra resources in Azure and wants to fetch from app insights using C#.