Skip to content

Instantly share code, notes, and snippets.

@artisticcheese
Last active March 13, 2018 15:27
Show Gist options
  • Select an option

  • Save artisticcheese/0fad071d10e89def3c1ca633ac9afaf9 to your computer and use it in GitHub Desktop.

Select an option

Save artisticcheese/0fad071d10e89def3c1ca633ac9afaf9 to your computer and use it in GitHub Desktop.
dockerfile part for appinsights
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