Deploy Azure Monitor Application Insights Agent for on-premises servers
This guidance is recommended for On-Premises and non-Azure cloud deployments of Application Insights Agent. Here's the recommended approach for Azure virtual machine and virtual machine scale set deployments.
Application Insights Agent (formerly named Status Monitor V2) is a PowerShell module published to the PowerShell Gallery. It replaces Status Monitor. Telemetry is sent to the Azure portal, where you can monitor your app.
The module currently supports codeless instrumentation of .NET and .NET Core web apps hosted with IIS. Use an SDK to instrument Java and Node.js applications.
Application Insights Agent is located here: https://www.powershellgallery.com/packages/Az.ApplicationMonitor.
- See the getting started instructions to get a start with concise code samples.
- See the detailed instructions for a deep dive on how to get started.
PowerShell API reference
Does Application Insights Agent support proxy installations?
Yes. There are multiple ways to download Application Insights Agent. If your computer has internet access, you can onboard to the PowerShell Gallery by using
-Proxyparameters. You can also manually download the module and either install it on your computer or use it directly. Each of these options is described in the detailed instructions.
Does Status Monitor v2 support ASP.NET Core applications?
Yes. Starting from Application Insights Agent 2.0.0-beta1, ASP.NET Core applications hosted in IIS are supported.
How do I verify that the enablement succeeded?
The Get-ApplicationInsightsMonitoringStatus cmdlet can be used to verify that enablement succeeded.
We recommend you use Live Metrics to quickly determine if your app is sending telemetry.
You can also use Log Analytics to list all the cloud roles currently sending telemetry:
union * | summarize count() by cloud_RoleName, cloud_RoleInstance
- Updated ApplicationInsights .NET/.NET Core SDK to 2.18.1-redfield.
- Added ASP.NET Core Auto-Instrumentation feature.
View your telemetry:
- Explore metrics to monitor performance and usage.
- Search events and logs to diagnose problems.
- Use Analytics for more advanced queries.
- Create dashboards.
Add more telemetry: