appinsights_diagnose_slowness
WHEN: user wants to understand/deduce why a D365 F&O environment feels slow, using the real Application Insights telemetry the environment already emits -- no trace file upload needed. Runs a set of canned KQL queries and assembles one combined report:
X++ exception hotspots (exceptions table) -- top types/messages by count.
Hot custom telemetry events (customEvents table) -- top event names by frequency, plus a duration breakdown for events that carry an ElapsedMilliseconds custom property (covers ALMMonitoring-instrumented FDDs, and any out-of-box signal using the same convention).
Slow web requests/dependencies (requests/dependencies tables) -- only rendered if the workspace actually has data there (uncommon for FnO's own AOS tier, but present for Commerce/Portal/custom web extensions sharing the same App Insights resource). Requires the connection to be configured first via appinsights_set_connection (or server env vars).
Triggers: 'déduire et comprendre les lenteurs', 'why is my environment slow', 'diagnose slowness from App Insights', 'analyse la lenteur avec App Insights', 'performance issue live environment', 'slow environment telemetry'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max rows per section (1-50). Default 15. | |
| lookbackHours | No | How far back to analyze, in hours (1-720). Default 24. | |
| minDurationMs | No | Minimum average duration (ms) for a custom event to be flagged as 'slow'. Default 2000. |