Application insights powershell code example
Example: Application insights powershell
# 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