When using the latest version of the Application Insights(AI) SDK (at time of writing: 2.4.1) in code via NuGet, is the AI extension also needed on the web app extension list in Azure ?
You may either install the Application Insights SDK via NuGet, aka build time, or enable the Application Insights site extension through the Azure Portal, aka run time.
If you do both, the Application Insights site extension will not work even though it is turned on.
You can refer to the Azure Monitor documentation on Application Insights for more information.
No. The extension gives similar features as the SDK.
It is an option to use App Insights in an app without installing the SDK.
Related
How does one add Azure Application Insights to a .NET Core App? I want to see search traffic analytics.
An overall solution that would work locally, on both Windows and on Linux* environments, is:
Create an Application Insights account.
Install the Microsoft.ApplicationInsights.AspNetCore NuGet package
Using Dependency Injection, register the Application Insights client into the service collection. You can find a very good example on how to do this on Andrew Lock's blog.
Register Application Insights telemetry insight your Startup class. It will work out of the box for you later on.
services.AddApplicationInsightsTelemetry();
Add ApplicationInsights in your appsettings file, and InstrumentationKey inside of it (Your instrumentation key can be found in the overview tab of your resource):
"ApplicationInsights": {
"InstrumentationKey": "…"
},
Now, if you run your application, you will be able to capture all traffic in your Application Insights account.
* On Linux, this is currently in preview on Azure, but this would work.
It's the same way you do for ASP.NET app. Did you have a chance to look at Start Monitoring Your ASP.NET Core Web Application which includes the same steps
Create AppInsights
Enable AppInsights
Configure App Insights SDK
Open your project in Visual Studio, right click in project you want to add the Application insights and click Publish. Go to Connected Services, inside Service Dependencies, click Add Dependency and select Application Insights Sdk (Local) as shown in the screenshot below.
Click Next then click Finish to install the required Nuget packages and you're done.
I have an Application Insights in Azure. There are some ASP.NET web applications deployed in Azure virtual machine which sends data to that Application Insights.
The problem is when I am going to 'Configure Application Insights Profiler' (under 'performance' tab and then 'configure profiler') in the Application Insights, it is showing me a message 'We detected one or more of your apps are using an older profiler agent. You must be on latest agent to get the new trigger-based profiling feature. Click here to learn more'.
When I am going to the link it is asking to check Windows Azure Diagnostics (WAD) extension version in the virtual machine location 'C:\Packages\Plugins\Microsoft.Azure.Diagnostics.IaaSDiagnostics'.
I have created a list of applications which are having the INSTRUMENTATION KEY in their web.config of the particular Application Insights. I logged into each of the virtual machines where those applications are deployed and checked the location. All of them are having the latest Windows Azure Diagnostics (WAD) extension installed on them.
At this point I have no idea about the reason of the message. Can you tell me, is there a easy way to check for which application it is showing the message?
Hi #DeveloperArnab are you still facing this issue? This is usually caused by one of your applications being on an older version of the agent or one of the apps sampling out application insights telemetry
When we deploy an ASP.CORE 3.0 on Azure we have this error:
The current .NET SDK does not support targeting .NET Core 3.0
Okay... but do you know when ASP.CORE 3.0 will be available in Azure App Service ?
Thank you
As of now its not deployed and no estimates are provided
But you should be able to do it your self
Install the preview site extension
From the Azure Portal, navigate to the App Service.
Select the web app.
Type "ex" in the search box to filter for "Extensions" or scroll down the list of management tools.
Select Extensions.
Select Add.
Select the ASP.NET Core {X.Y} ({x64|x86}) Runtime extension from the list, where {X.Y} is the ASP.NET Core preview version and {x64|x86} specifies the platform.
Select OK to accept the legal terms.
Select OK to install the extension.
The channel to get the best information about Azure Updates is:
https://github.com/Azure/app-service-announcements
But until now nothing has been posted there.
The MS Dev-Blog https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0/ is saying that
Azure App Service deployment of .NET Core 3.0 is currently ongoing.
So I suggest you set up a watch on the github repo above to get notified once the work is done.
Work is in progress and will be available in some time. But No ETA at this point.
When I have configured application insights by installing the packages to the solution, its working fine and able to capture telemetry data.
Now, I want to integrate application insights with my windows services (running on premises vms) without installing the nuget packages (Microsoft.ApplicationInsights.WindowsServer) or inserting the instrumentation key to the source code. Is it possible?
I have tried to copy all the required dlls (application insights related) to the output directory of my service and used Application Insights configuration to set the instrumentation key but its not sending any telemetry data.
You can integrate your Windows services (on-premises) to send telemetry to App insights, but without installing the NuGet packages and providing Instrumentation key is not possible. There are some other processes to follow too for your use-case.
Refer this official docs,
Applications hosted on premises, in Azure, and in other clouds can all
take advantage of Application Insights. The only limitation is the
need to allow communication to the Application Insights service. For
monitoring Universal Windows Platform (UWP) applications, we recommend
Visual Studio App Center.
Refer this SO thread for better understanding
Is it possible to use the application insights profiler on azure functions? Either via the portal or a more manual means.
I haven't found a way in the portal and I haven't seen explicit documentation stating either way nor github tickets.
I'd assume probably not, as many of the automagic features of application insights don't seem to be supported yet.
If it's not possible, out of interest is it because of the azure functions sandbox not giving enough permissions for profiling?
If it's not possible, out of interest is it because of the azure functions sandbox not giving enough permissions for profiling?
The application insights profiler is just supported in web app. The Azure function belongs to function app. So you can not use profiler in Azure function.
Profiler currently works for ASP.NET and ASP.NET Core web apps that are running on Web Apps.
If you want to suggest Microsoft to add some new features like app insights profiler in app insights in azure function, you could put your suggestion in Github.
Next steps
Application Insights is now GA’d and ready for production workloads. We’re also listening for any feedback you have. Please file it on our GitHub. We’ll be adding some new features like better sampling controls and automatic dependency tracking soon.