Azure-docs: No documentation how to install Status Monitor in unattended mode

Created on 8 Mar 2018  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

Hello,

How do you instrument existing application which are installed in ServerCore or windows containers? Status Monitor executable is not MSI package and it's not available to install through proper modern package management solutions.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

application-insightsvc cxp in-progress product-question triaged

Most helpful comment

Here is how to do it unattended.

Invoke-WebRequest "https://go.microsoft.com/fwlink/?linkid=517856" -UseBasicParsing -OutFile appinsights.msi
Start-Process -filepath "appinsights.msi" -ArgumentList "/quiet" -PassThru | Wait-Process
Import-Module 'C:\Program Files\Microsoft Application Insights\Status Monitor\PowerShell\Microsoft.Diagnostics.Agent.StatusMonitor.PowerShell.dll'
Start-ApplicationInsightsMonitoring -Name 'default web site' -InstrumentationKey '<KeyHere>'

I'm writing up an article how to use ApplicationInsights inside windows containers, will provide a link to blog how to do it end to end

https://wordpress.com/post/artisticcheese.wordpress.com/884

All 5 comments

Thanks for the feedback! We are currently investigating and will update you shortly.

Similar situation, I want to provide unattended install of the Status Monitor - ideally by including it in a nested PowerShell Desired State Configuration that installs and configures the rest of IIS.

@artisticcheese , @mikejonestechno

Was able to get some useful information from my dev team. "Unattended install" has not been tested on ServerCore so it is not officially supported. The PG appreciates your direct feedback so please share your request for server core support here.
For an unattended install (excluding Server Core), there’s instructions @ https://docs.microsoft.com/en-us/iis/install/web-platform-installer/web-platform-installer-v4-commcontrand-line-webpicmdexe-rtw-release

If there are network limitations, use the link above for instructions on how to first download the files to perform an offline install.

Ensure you have appropriate IP addresses/DNS exceptions in place:
https://docs.microsoft.com/en-us/azure/application-insights/app-insights-ip-addresses

After the PowerShell install runs a GUI kicks off and downloads some updated NuGet packages.
From there you should be able to follow the PowerShell steps in the article below:
https://docs.microsoft.com/en-us/azure/application-insights/app-insights-monitor-performance-live-website-now#automation-with-powershell

Here is how to do it unattended.

Invoke-WebRequest "https://go.microsoft.com/fwlink/?linkid=517856" -UseBasicParsing -OutFile appinsights.msi
Start-Process -filepath "appinsights.msi" -ArgumentList "/quiet" -PassThru | Wait-Process
Import-Module 'C:\Program Files\Microsoft Application Insights\Status Monitor\PowerShell\Microsoft.Diagnostics.Agent.StatusMonitor.PowerShell.dll'
Start-ApplicationInsightsMonitoring -Name 'default web site' -InstrumentationKey '<KeyHere>'

I'm writing up an article how to use ApplicationInsights inside windows containers, will provide a link to blog how to do it end to end

https://wordpress.com/post/artisticcheese.wordpress.com/884

@artisticcheese, thanks for sharing this very useful information.
I will proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ponant picture Ponant  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

varma31 picture varma31  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments