Application Insights Desktop Applicaion - azure

My company is moving to Azure Application Insights. The logging is fine, but having to go into the Azure web portal to write a query stinks. Are there any desktop application to use like SSMS to query with? I have googled for it. but "Application Insights Application" is a bit redundant and didn't yield great results...

Update 03/30:
Here are the detailed steps(assume you have already downloaded the tool):
1.Open Kusto Explorer, in the "Connections" menu -> select "Add group", and follow the screenshot below to add a group:
2.Right click the group name -> select "Add connection", then follow the screenshot below to create connection to your application insights:
3.When the connection is ok, you can expand the group, and your application insights is there; you can then write your query code to query data:
The referenced doc: here and here.
Original answer:
You can use the client tool Kusto Explorer to query Application Insights logs. And here is already a similar issue.
For any details about that, please send a mail to adxproxy#microsoft.com.

Related

Visual Studio Code :: Configure Kusto Connection

I'm new to Kusto.
I'm trying to follow this guide that should help me identify unused resources on Azure.
The first command is pretty easy:
resources
| where type == "microsoft.compute/disks"
But it fails miserably with the error: Request is invalid and cannot be executed. ('where' operator: Failed to resolve table or column expression named 'resources')
I have tried with other resources:
Samples
SampleIoTData
SampleMetrics
ContosoSales
SampleLogs
But non seems working.
I have also tried
Add Azure Data Explorer cluster
Add Azure Application Insights
And none seems to work.
So how do you connect to your Azure Subscription through Visual Studio Code and Kusto?
Kusto was created within Microsoft and used internally within Microsoft.
Log Analytics & Application Insights (as of today, components of Azure Monitor) are Microsoft's SaaS (Software as a Service) that use Kusto as back-end.
Azure Resource Graph is another Microsoft's SaaS that uses Kusto as back-end.
Those SaaS externalize (different) subsets of the Kusto query language (KQL).
Those SaaS are unrelated.
Azure Data Explorer (abbrevated ADX) is Microsoft's offering of Kusto as PaaS (Platform as a Service), to its customers.
Some reading:
https://en.wikipedia.org/wiki/Azure_Data_Explorer
There is a Visual Studio Code plugin that supports executing KQL queries against ADX clusters & Application Insight.
Samples, SampleIoTData etc. are databases of an ADX publicly available cluster, called Help.
resources is a table of Azure Resource Graph.
You can query it through the Azure Portal:
https://portal.azure.com/#view/HubsExtension/ArgQueryBlade
I'm not familiar with a formal option to query it from Visual Studio Code, but if you search on the web, you can find some projects developed by individuals.
Click the "Extensions" button, search for "kusto notebooks" and click "Install"
Press the "Kusto" button and then the "Add Cluster" button
Select the 1st connection type ("Azure Data Explorer Cluster")
Enter the cluster URL
Note the newly create cluster and databases on the left
Click the "Explorer" button and then create a new file with .knb suffix.
In your newly created file, click the "Configure Kusto Connection" button
Select the require connection
Select the required database
Add a "Code" cell, write your code and execute it

In Azure, while enabling Application Insight, getting message Resource group could not be found

While studying Azure 204 from Microsoft azure docs,
https://learn.microsoft.com/en-us/learn/modules/create-serverless-logic-with-azure-functions/4-creating-and-executing-an-azure-function
I have created new function app esclator-function-{name} as asked in documentation.
I am also able to create a function and Test/Run it in Azure portal mode with "Run" button and also in postman using function url.
Now I want to monitor it using Application Insight. So as instructed in article, I've choosed Application Insight from Settings and clicked "Turn on Application Insight" button , kept the default settings and clicked "Apply" and then "Yes" buttons.
But now when I see in "Notifications" from top right icons, I get message
"Deployment validation failed.
Additional details from the underlying API that might be helpful: Resource group 'DefaultResourceGroup-CID' could not be found."
Also the "Apply Changes" shows "10% Completed" progress all time, it don't proceed further.
So I am not able to proceed to the article further, I will apricate the workaround if any.
In Azure, while enabling Application Insight, getting message Resource group could not be found
As per the below Image You need to create new resource group or set the existing resource group and you need to enable Application Sight extensions and them you need to apply it.
For further information check Enable application Insights Integration
Also,
Check How to configure for Azure Functions.

Dashboards on custom application using application insights

We have a lot of applications that throws custom logs to application insights. I would like to make a dashboard where I can see if each application is running or throwing exceptions etc. I have tried looking around in log analytics and it does not seem to have a connector to Application insights. Can anyone provide with some information to start on? Should I use Monitor, Log Analytics or Sentinel for this task and how do you get started with custom application insights logs.
Application Insights is part of Azure Monitor. When creating a new App Insights resource you can now choose to store everything in an Azure Log Analytics Workspace, see the docs. Or you can migrate your existing resource to a workspace backed resource.
Then you can use workbooks to visualize data using interactive workbooks. These workbooks are also available to classic App Insights resources however.
There is also the possibilty to query an App Insights resource in any Log Analytics Workspace by using the app expression like this:
app("name-of-your-ai-resource").requests
| order by timestamp desc
| project timestamp, url, resultCode
and use those results for visualizations.
Finally you can also use the rich capabilities of Power Bi to create interactive reposts, see the docs

Sql Azure Database in azure show This asset was not found, it may have been deleted but is running

I'm having an issue when I try change settings to Sql Azure Database at Azure, I see:
"This asset was not found, it may have been deleted"
But the access to database by Management Studio is working.
After moving my SQL Server (and it´s only database) between resource groups I had the exact same issue.
SQL Server was listed under "All Resources".
SQL Database had disappeared and was not listed undier "All Resources".
I could see my database if I clicked my SQL Server -> SQL Databases. status was "Online".
If I clicked the database I got the exact same error.
My database was always accessible from SQL Management Studio. Renaming the database in Management Studio to something different and then back to it´s previous name fixed the problem. Now it´s visible again under "All Resources".
This error will usually happen,
when you delete the resource and forget to refresh the page for a while
The issue is usually related to invalid operations with the resource group. For example, assigning a server/database to a resource group that doesn't exist.
Go on your dashboard and delete any shortcut to your database and its server.
Go to the All resources tab on the left blade of the Azure portal and search for your database. Click on it.
Pin the database to the dashboard again by clicking on the pin icon on the top right corner.
Thanks to all who tried to help me, I did not understand at all because, but it seems that maybe it was a problem in azure as such, this problem was presented to me by 3 database, what I did was try a "madness" and was renombrar the database through the Management Studio and once completed was presented in the Azure dashboard.

How to fill 'requests' in Application Insights Analytics from HockeyApp in Xamarin app?

I've just started using HockeyApp MetricsManager with Application Insigts Analytics on Azure. I managed to log customevents from my Xamarin App, but how can I log / trace requests?
I saw this requests table on this video: https://channel9.msdn.com/Shows/Cloud+Cover/Episode-214-Hockey-App-and-Azure-App-Insights-with-Evgeny-Ternovsky-and-Josh-Weber
This is the tutorial I used: https://www.youtube.com/watch?v=zcgHorMJklI&t=7s
My code limits to:
MetricsManager.Register(Application, "myAppId");
Unfortunately, requests is not a data type that is supported by HockeyApp. You can see more details here: https://azure.microsoft.com/en-us/blog/mobile-and-desktop-telemetry-in-application-insight-and-hockeyapp/. The demo that Josh and I did that you linked to included a requests table because the data that we were showing starting ~30min in came from a service that was instrumented with Application Insights. We did this just to show the potential of the Analytics tool with a big data set.
That said, HockeyApp does include a custom event mechanism that you can put any data you want into and then query via Analytics. You can see how to do this in section 3.7.2 here - this link is for the iOS SDK but the same option is available for Android and Windows as well.
1 Navigate to your application in the Azure portal.
2 Click on the orange status bar saying Transfer to HockeyApp.
3 Click the Transfer App button.
4 Thats it!
Behind the scenes the migration tool will use your Azure credentials to log in and create a HockeyApp account (if you don't already have one or it isn't linked to your Azure login credentials). It will then automatically provision a new HockeyApp app for you. This new app will be automatically linked with your Application Insights app. They will share the same instrumentationKey / appID and data sent via a AI or HA SDK will flow to both experiences until the June 15th sunset date for Application Insights. After that date data will only be available via HockeyApp.

Resources