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 only currently supports codeless instrumentation of .NET web apps hosted with IIS. Use an SDK to instrument ASP.NET Core, 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?
No. For instructions to enable monitoring of ASP.NET Core applications, see Application Insights for ASP.NET Core applications. There's no need to install StatusMonitor for an ASP.NET Core application. This is true even if ASP.NET Core application is hosted in IIS.
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
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: