~/talk

PowerShell Error and Event Collection at Scale

links:none on file
slides:none on file

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

  1. 0:00Start
  2. 2:23Application Insights
  3. 3:16Demo
  4. 4:41Instantiate a Telemetry Client
  5. 7:12Collecting Events or Errors
  6. 14:05Metrics
  7. 15:08Track a Page View
  8. 16:26Metric Tracking
  9. 17:16Custom Metrics
  10. 18:29Track Slow Code
  11. 23:50Power Bi
  12. 24:14Export to Power Bi as an M Query
  13. 25:34Organizational Credentials
  14. 27:32Telemetry Client
  15. 30:17Put the Application Insights File within the Script Module
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.