Last active
March 13, 2018 15:27
-
-
Save artisticcheese/0fad071d10e89def3c1ca633ac9afaf9 to your computer and use it in GitHub Desktop.
dockerfile part for appinsights
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WORKDIR prep | |
| RUN Invoke-WebRequest "https://go.microsoft.com/fwlink/?linkid=517856" -UseBasicParsing -OutFile appinsights.msi; ` | |
| Start-Process -filepath "appinsights.msi" -ArgumentList "/quiet" -PassThru | Wait-Process; ` | |
| Remove-Item .\* -recurse -force -Verbose | |
| RUN Import-Module 'C:\Program Files\Microsoft Application Insights\Status Monitor\PowerShell\Microsoft.Diagnostics.Agent.StatusMonitor.PowerShell.dll'; ` | |
| Start-ApplicationInsightsMonitoring -Name 'default web site' -InstrumentationKey '3c069cb6-fc1a-4bab-974c-0a4245ae7f1b' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment