@Hugo Aguirre - Thanks for reaching out and for providing the solution that worked for you.
Here is another SDK that you can take a look at.
A C# SDK is made available for querying an Application Insights app. It supports the full query language.
The SDK is available via NuGet here: https://www.nuget.org/packages/Microsoft.Azure.ApplicationInsights.Query
Additionally, you can leverage the Microsoft.Rest.ClientRuntime.Azure.Authentication package for easier authentication with AAD in lieu of providing your own implementation of ServiceClientCredentials.
Here is the doc for your reference : CSharp-Sdk
Hope this helps.
If the above response helped, please feel free to "Accept as Answer" so it can be beneficial to the community.