Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions agents/logicapps-appinsights.agent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
name: "Logic Apps App Insights"
description: "Troubleshoots Azure Logic Apps Standard apps (Microsoft.Web/sites, kind workflowapp) from their Application Insights data. Answers questions such as 'list the failed runs from app xyz in the last hour' with tested, read-only KQL over the requests, traces, dependencies, and exceptions tables. Detects the telemetry mode first (v2, v2 with PreserveIncomingOperationId, or v1) and runs queries through a helper script, az rest, or az monitor. Uses the logicapps-appinsights-query skill. Not for Consumption logic apps."
---

# Logic Apps App Insights Agent

## Identity

I troubleshoot Logic Apps Standard workflows from the Application Insights resource that the
app sends telemetry to. I answer questions such as which runs failed, which action failed and
why, what one run did, which trigger failed, and which outgoing calls failed.

I only read data. I do not change app settings, `host.json`, or workflows unless the user
asks.

## Scope

In scope:

- Logic Apps Standard apps that have `APPLICATIONINSIGHTS_CONNECTION_STRING` set.
- Runs, actions, triggers, retries, client tracking IDs, outgoing calls, child workflows,
agent loops, exceptions, and host restarts, as recorded in `requests`, `traces`,
`dependencies`, and `exceptions`.
- Classic and workspace-based Application Insights resources.
- Explaining what a row means, and where the runtime's telemetry is missing or misleading.

Out of scope:

- Consumption logic apps (`Microsoft.Logic/workflows`). They do not write this telemetry.
- Changing workflow definitions or app configuration without the user's request.

## Knowledge Map

Read the skill before the first query:

| File | Use |
|------|-----|
| [`logicapps-appinsights-query/SKILL.md`](../skills/logicapps-appinsights-query/SKILL.md) | The workflow: resolve, detect the mode, pick a query, run it, report |
| [`references/query-cookbook.md`](../skills/logicapps-appinsights-query/references/query-cookbook.md) | Tested queries for common questions, with v1 variants |
| [`references/telemetry-schema.md`](../skills/logicapps-appinsights-query/references/telemetry-schema.md) | What the runtime writes to each table in each telemetry mode |
| [`references/query-execution.md`](../skills/logicapps-appinsights-query/references/query-execution.md) | Helper script, `az rest`, `az monitor` paths, time windows, permissions |
| [`scripts/Invoke-LogicAppInsightsQuery.ps1`](../skills/logicapps-appinsights-query/scripts/Invoke-LogicAppInsightsQuery.ps1) | Resolves the resource, detects the mode, and runs KQL |

If the skill is not installed, install it with
`gh skills install github/awesome-copilot logicapps-appinsights-query`.

## Working Discipline

1. Resolve the app and confirm it is Logic Apps Standard. Ask for anything missing. Default
to the last hour.
2. Detect the telemetry mode once per app and session. Do not query runs before this step.
3. Start from a cookbook entry and change only its `let` parameters. Write new KQL only when
no entry fits, and reuse the shared expressions so it works in every mode.
4. Match the query window to the tool's window. With `az monitor app-insights query`, always
pass `--offset`.
5. Report the mode, the UTC window, the row count, the rows, and the KQL I ran.
6. When a query returns nothing, give the likely reason before widening the window.
7. Apply the skill's Known Gaps table before drawing a conclusion. A failed polling trigger,
for example, shows `success` `True` in `requests`.

Safety:

- Never select `dependencies.data` or `customDimensions.prop__targetUri`. They can hold
SAS tokens.
- Never print callback URLs, connection strings, or instrumentation keys.
- Show only the workflow inputs and outputs that answer the question.

## Handoffs

- A gap in the runtime's telemetry: report it to the user with the table, the scenario, and
the missing field, so they can raise it with Azure support or on the Logic Apps feedback
channels.
- A problem outside Application Insights, such as a platform outage: point the user to Azure
Service Health and the Diagnose and solve problems blade for the app.

## Voice

Plain and direct. Lead with the answer, then the evidence. Say when a match is approximate
or when the data cannot answer the question.
1 change: 1 addition & 0 deletions docs/README.agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#adding-agents) for guidelines on how to
| [Launchdarkly Flag Cleanup](../agents/launchdarkly-flag-cleanup.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flaunchdarkly-flag-cleanup.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flaunchdarkly-flag-cleanup.agent.md) | A specialized GitHub Copilot agent that uses the LaunchDarkly MCP server to safely automate feature flag cleanup workflows. This agent determines removal readiness, identifies the correct forward value, and creates PRs that preserve production behavior while removing obsolete flags and updating stale defaults. |
| [Lingo.dev Localization (i18n) Agent](../agents/lingodotdev-i18n.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flingodotdev-i18n.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flingodotdev-i18n.agent.md) | Expert at implementing internationalization (i18n) in web applications using a systematic, checklist-driven approach. |
| [LinkedIn Post Writer](../agents/linkedin-post-writer.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flinkedin-post-writer.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flinkedin-post-writer.agent.md) | Draft and format compelling LinkedIn posts with Unicode bold/italic styling, visual separators, and engagement-optimized structure. Transforms raw content, technical material, images, or ideas into copy-paste-ready LinkedIn posts. |
| [Logic Apps App Insights](../agents/logicapps-appinsights.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flogicapps-appinsights.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flogicapps-appinsights.agent.md) | Troubleshoots Azure Logic Apps Standard apps (Microsoft.Web/sites, kind workflowapp) from their Application Insights data. Answers questions such as 'list the failed runs from app xyz in the last hour' with tested, read-only KQL over the requests, traces, dependencies, and exceptions tables. Detects the telemetry mode first (v2, v2 with PreserveIncomingOperationId, or v1) and runs queries through a helper script, az rest, or az monitor. Uses the logicapps-appinsights-query skill. Not for Consumption logic apps. |
| [Markdown Accessibility Assistant](../agents/markdown-accessibility-assistant.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fmarkdown-accessibility-assistant.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fmarkdown-accessibility-assistant.agent.md) | Improves the accessibility of markdown files using five GitHub best practices |
| [MAUI Expert](../agents/dotnet-maui.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fdotnet-maui.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fdotnet-maui.agent.md) | Support development of .NET MAUI cross-platform apps with controls, XAML, handlers, and performance best practices. |
| [MCP M365 Agent Expert](../agents/mcp-m365-agent-expert.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fmcp-m365-agent-expert.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fmcp-m365-agent-expert.agent.md) | Expert assistant for building MCP-based declarative agents for Microsoft 365 Copilot with Model Context Protocol integration |
Expand Down
1 change: 1 addition & 0 deletions docs/README.skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#adding-skills) for guidelines on how to
| [legacy-circuit-mockups](../skills/legacy-circuit-mockups/SKILL.md)<br />`gh skills install github/awesome-copilot legacy-circuit-mockups` | Generate breadboard circuit mockups and visual diagrams using HTML5 Canvas drawing techniques. Use when asked to create circuit layouts, visualize electronic component placements, draw breadboard diagrams, mockup 6502 builds, generate retro computer schematics, or design vintage electronics projects. Supports 555 timers, W65C02S microprocessors, 28C256 EEPROMs, W65C22 VIA chips, 7400-series logic gates, LEDs, resistors, capacitors, switches, buttons, crystals, and wires. | `references/28256-eeprom.md`<br />`references/555.md`<br />`references/6502.md`<br />`references/6522.md`<br />`references/6C62256.md`<br />`references/7400-series.md`<br />`references/assembly-compiler.md`<br />`references/assembly-language.md`<br />`references/basic-electronic-components.md`<br />`references/breadboard.md`<br />`references/common-breadboard-components.md`<br />`references/connecting-electronic-components.md`<br />`references/emulator-28256-eeprom.md`<br />`references/emulator-6502.md`<br />`references/emulator-6522.md`<br />`references/emulator-6C62256.md`<br />`references/emulator-lcd.md`<br />`references/lcd.md`<br />`references/minipro.md`<br />`references/t48eeprom-programmer.md` |
| [lightweight-charts-react-components](../skills/lightweight-charts-react-components/SKILL.md)<br />`gh skills install github/awesome-copilot lightweight-charts-react-components` | lightweight-charts-react-components recipes for TradingView lightweight-charts in React. Candlestick, line, and area series; volume and indicator panes; realtime WebSocket updates; infinite history on scroll; crosshair OHLC legends and tooltips; trade markers and price lines; synchronized charts; numeric options and yield-curve axes. Use when adding or fixing a financial or trading chart in a React app, or when the user mentions lightweight-charts, TradingView charts in React, or this package. | `LICENSE`<br />`references/history-and-range-selection.md`<br />`references/hover-legends-and-tooltips.md`<br />`references/market-data-and-live-updates.md`<br />`references/numeric-axes-and-chart-types.md`<br />`references/performance-comparison.md`<br />`references/price-volume-and-indicators.md`<br />`references/session-overlays-and-primitives.md`<br />`references/synchronized-charts.md`<br />`references/trade-markers-and-price-levels.md` |
| [linkedin-post-formatter](../skills/linkedin-post-formatter/SKILL.md)<br />`gh skills install github/awesome-copilot linkedin-post-formatter` | Format and draft compelling LinkedIn posts using Unicode bold/italic styling, visual separators, structured sections, and engagement-optimized patterns. USE FOR: draft LinkedIn post, format text for LinkedIn, create social media post, write thought leadership post, convert content to LinkedIn format, LinkedIn carousel text, Unicode bold italic formatting. | `references/unicode-charmap.md` |
| [logicapps-appinsights-query](../skills/logicapps-appinsights-query/SKILL.md)<br />`gh skills install github/awesome-copilot logicapps-appinsights-query` | Query Application Insights telemetry from an Azure Logic Apps Standard app to troubleshoot workflows. Use when asked about failed or slow runs, failed actions and their errors, trigger failures, retries, one run's timeline, a run by client tracking ID, failed outgoing calls, exceptions, agent loops, or host restarts for a Logic Apps Standard app (Microsoft.Web/sites, kind workflowapp). Detects the telemetry mode first (v2, v2 with PreserveIncomingOperationId, or v1), picks a tested query from the cookbook, and runs it read-only through a helper script, az rest, az monitor app-insights query, or az monitor log-analytics query. Do not use for Consumption logic apps (Microsoft.Logic/workflows). | `references/query-cookbook.md`<br />`references/query-execution.md`<br />`references/telemetry-schema.md`<br />`scripts/Invoke-LogicAppInsightsQuery.ps1` |
| [logicapps-custom-code-net10-migration](../skills/logicapps-custom-code-net10-migration/SKILL.md)<br />`gh skills install github/awesome-copilot logicapps-custom-code-net10-migration` | Migrate Azure Logic Apps Standard local-function custom-code projects from .NET 8 to .NET 10. Use for legacy Logic Apps custom-code workspace upgrades, project/package configuration, custom-worker settings, publication, and integrated VS Code debugging. Not for ordinary .NET applications, standalone Azure Functions, Consumption workflows, or cloud deployment. | `LICENSE`<br />`README.md`<br />`references/migration.md`<br />`scripts/migrate.py`<br />`tests/test_migrate.py` |
| [lsp-setup](../skills/lsp-setup/SKILL.md)<br />`gh skills install github/awesome-copilot lsp-setup` | Enable code intelligence (go-to-definition, find-references, hover, type info) for any programming language by installing and configuring an LSP server for Copilot CLI. Detects the OS, installs the right server, and generates the JSON configuration (user-level or repo-level). Use when you need deeper code understanding and no LSP server is configured, or when the user asks to set up, install, or configure an LSP server. | `references/java-jdtls.md`<br />`references/lsp-servers.md` |
| [macos-golden-gate-design](../skills/macos-golden-gate-design/SKILL.md)<br />`gh skills install github/awesome-copilot macos-golden-gate-design` | Design, implement, review, or refactor native macOS 27 Golden Gate interfaces in SwiftUI or AppKit. Use when a Mac app must match Apple's current macOS 27 UI kit and restrained Liquid Glass language: integrated windows, full-height sidebars, native toolbars, flat lists, tables, and forms, clear pane boundaries, accessible materials, and removal of unnecessary nested cards, framed panels, or glassmorphism. Also use for Figma macOS 27 design-to-code work and audits of interfaces that feel too boxed. | `references/design-patterns.md`<br />`references/sources.md`<br />`references/swiftui-implementation.md` |
Expand Down
Loading
Loading