MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.29k stars 21.47k forks source link

No documentation how to install Status Monitor in unattended mode #5476

Closed artisticcheese closed 6 years ago

artisticcheese commented 6 years ago

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.

BryanTrach-MSFT commented 6 years ago

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

mikejonestechno commented 6 years ago

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.

femsulu commented 6 years ago

@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

artisticcheese commented 6 years ago

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

femsulu commented 6 years ago

@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.