PowerShell Error and Event Collection at Scale
summary
Shows how Application Insights ingest from PowerShell via the microsoft.applicationinsights nuget DLL and a TelemetryClient, capturing exceptions, custom metrics and pageviews, then exporting to Power BI as an M query. Demo sends exception objects (divide‑by‑zero) with problemId and stack trace, uses async sends with a flush forces send call, and measures slow code: an array loop takes 8560 ms vs 346 ms for a List. Module examples include opt‑in telemetry persisted to ProgramData; demos succeed.
AI-written summary · about
chapters (15)
- 0:00Start
- 2:23Application Insights
- 3:16Demo
- 4:41Instantiate a Telemetry Client
- 7:12Collecting Events or Errors
- 14:05Metrics
- 15:08Track a Page View
- 16:26Metric Tracking
- 17:16Custom Metrics
- 18:29Track Slow Code
- 23:50Power Bi
- 24:14Export to Power Bi as an M Query
- 25:34Organizational Credentials
- 27:32Telemetry Client
- 30:17Put the Application Insights File within the Script Module
related talks
01h 24mIntro to Telemetry: How to use App Insights in PowerShell
01h 00mDon't Fly Blind - Implementing Effective Application Instrumentation
52mApplication Insights: The Tool You Never Knew You Needed
01h 01mLogging, tracing and metrics: instrumentation in .NET and Azure
26mImproving fault detection & real time detailed analytics with Telemetry
01h 31mFrom Outage to Edge: A PowerShell Observability Journey
55mPower your .NET application with the new generation of diagnostics
46mAn IT Operations Approach to Observability
