为本地服务器部署 Azure Monitor Application Insights 代理Deploy Azure Monitor Application Insights Agent for on-premises servers

Important

对于 Application Insights 代理的本地和非 Azure 云部署,建议使用本指南。This guidance is recommended for On-Premises and non-Azure cloud deployments of Application Insights Agent. 下面是建议用于 Azure 虚拟机和虚拟机规模集部署的方法。Here's the recommended approach for Azure virtual machine and virtual machine scale set deployments.

Application Insights 代理(以前称为状态监视器 V2)是发布到 PowerShell 库的 PowerShell 模块。Application Insights Agent (formerly named Status Monitor V2) is a PowerShell module published to the PowerShell Gallery. 它将替换状态监视器It replaces Status Monitor. 遥测数据将发送到 Azure 门户,你可以在其中监视应用。Telemetry is sent to the Azure portal, where you can monitor your app.

Note

目前,该模块仅支持使用 IIS 托管的 .NET Web 应用的无代码检测。The module only currently supports codeless instrumentation of .NET web apps hosted with IIS. 使用 SDK 检测 ASP.NET Core、Java 和 Node.js 应用程序。Use an SDK to instrument ASP.NET Core, Java, and Node.js applications.

Application Insights 代理位于此处: https://www.powershellgallery.com/packages/Az.ApplicationMonitorApplication Insights Agent is located here: https://www.powershellgallery.com/packages/Az.ApplicationMonitor.

PowerShell 库

InstructionsInstructions

PowerShell API 参考PowerShell API reference

故障排除Troubleshooting

常见问题解答FAQ

  • Application Insights 代理是否支持代理安装?Does Application Insights Agent support proxy installations?

    Yes. 可以通过多种方式下载 Application Insights 代理。There are multiple ways to download Application Insights Agent. 如果计算机可以访问 Internet,则可以使用 -Proxy 参数登录到 PowerShell 库。If your computer has internet access, you can onboard to the PowerShell Gallery by using -Proxy parameters. 还可以手动下载此模块,并将其安装到计算机上或直接使用它。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.

  • 状态监视器 v2 是否支持 ASP.NET Core 应用程序?Does Status Monitor v2 support ASP.NET Core applications?

    No. 有关启用对 ASP.NET Core 应用程序的监视的说明,请参阅适用于 ASP.NET Core 应用程序的 Application InsightsFor instructions to enable monitoring of ASP.NET Core applications, see Application Insights for ASP.NET Core applications. 无需为 ASP.NET Core 应用程序安装 StatusMonitor。There's no need to install StatusMonitor for an ASP.NET Core application. 即使 ASP.NET Core 应用程序托管在 IIS 中,也是如此。This is true even if ASP.NET Core application is hosted in IIS.

  • 如何验证启用是否成功?How do I verify that the enablement succeeded?

后续步骤Next steps

查看遥测:View your telemetry:

添加更多遥测:Add more telemetry: