The Application Insights Agent replaces the old Status Monitor tool. It allows you to monitor .NET web applications hosted in IIS without the need to change your code.
You can install the agent from the Powershell gallery: https://www.powershellgallery.com/packages/Az.ApplicationMonitor
Installation steps
- First you need to install/update PowershellGet. Therefore open an elevated Powershell prompt and execute the following commands:
- Install-PackageProvider -Name NuGet –Force
- Install-Module -Name PowerShellGet –Force
- Update-Module -Name PowerShellGet
- Next, close and re-open the elevated Powershell prompt. If you forget to do that you’ll probably get the following error when you try to install the Az.ApplicationMonitor module:
- In a new command prompt execute the following command:
- Install-Module -Name Az.ApplicationMonitor -RequiredVersion 1.0.1
- Hit [Y]es to ignore the untrusted repository warning and accept the license agreement
- Check that the installation was done succesfully by executing the following command:
- Enable-ApplicationInsightsMonitoring
WARNING: The specified module 'Az.ApplicationMonitor' with PowerShellGetFormatVersion '2.0' is not supported by the current version of PowerShellGet. Get the latest version of the PowerShellGet module to install this module, 'Az.ApplicationMonitor'.