Question : Application insights powershell
Answered by : elated-elephant-ke9mwvxsemgi
# assumes your module was downloaded to C:\source
Import-Module C:\Source\AzurePowerShellUtilityFunctions\AzurePowerShellUtilityFunctions.psd1
# plug in your AI instrumentation key, trace message, and severity.
Send-AppInsightsTraceTelemetry -InstrumentationKey '<guid>' -Message 'This is an information logging message.' -Severity Information
Source : https://keithbabinec.com/2019/07/07/logging-azure-application-insights-telemetry-data-from-powershell/ | Last Update : Sun, 25 Apr 21