Skip to content

Add Logic Apps App Insights query skill and agent - #6553

Draft
nikhilsira wants to merge 2 commits into
github:mainfrom
nikhilsira:add-logicapps-appinsights-query-skill
Draft

nikhilsira wants to merge 2 commits into
github:mainfrom
nikhilsira:add-logicapps-appinsights-query-skill

Conversation

@nikhilsira

Copy link
Copy Markdown

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the main branch for this pull request.

Description

Adds the logicapps-appinsights-query skill and the Logic Apps App Insights agent. They help users troubleshoot Azure Logic Apps Standard apps from the Application Insights data the runtime writes to the requests, traces, dependencies, and exceptions tables.

Users can ask questions such as "list the failed runs from app xyz in the last hour". The skill:

  • Resolves the app and its Application Insights resource.
  • Detects the telemetry mode: v2, v2 with PreserveIncomingOperationId, or v1.
  • Picks a tested KQL query from the cookbook and runs it read-only through a PowerShell helper script, az rest, or az monitor app-insights query.
  • Lists known gaps in the runtime telemetry, so the agent does not draw wrong conclusions. For example, a failed polling trigger shows success True in requests.

The skill complements the existing azure-logic-apps-standard-cli skill, which manages apps and workflows. This skill only reads telemetry.


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • New canvas extension.
  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
  • Other (please specify):

Additional Notes

  • npm run skill:validate passes.
  • I ran every cookbook query against a live Logic Apps Standard app in each telemetry mode. End-to-end testing of the installed skill and agent in GitHub Copilot is still in progress; this PR stays in draft until it is done.
  • Application Insights is a paid Azure service. The skill reads data from the user's own resource and needs no extra product or subscription.

By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Adds a skill that queries Azure Logic Apps Standard telemetry in Application Insights: failed runs, trigger and action failures, connector dependencies, child workflows, agent loops and model calls. Includes a schema reference, a query cookbook and a PowerShell helper that runs KQL through az monitor app-insights query.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 737dca98-97aa-4918-8745-ea7ef3b8699d
Adds an agent that uses the logicapps-appinsights-query skill to troubleshoot Logic Apps Standard apps from Application Insights.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 737dca98-97aa-4918-8745-ea7ef3b8699d
@github-actions

Copy link
Copy Markdown
Contributor

🔒 PR Risk Scan Results

Scanned 6 changed file(s).

Severity Count
🔴 High 0
🟠 Medium 0
ℹ️ Info 1
Severity Rule File Line Match
ℹ️ skill-script-touched skills/logicapps-appinsights-query/scripts/Invoke-LogicAppInsightsQuery.ps1 1 skills/logicapps-appinsights-query/scripts/Invoke-LogicAppInsightsQuery.ps1

This is an automated soft-gate report. Findings indicate review targets and do not block merge by themselves.

@github-actions github-actions Bot added agent PR touches agents new-submission PR adds at least one new contribution skills PR touches skills awaiting-automation merge-risk:high labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🚦 Submission status: 👀 Ready for review

Risk tier: merge-risk:high — Privileged execution, automation, or review-policy change
Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access, including a maintainer with admin or maintain permission.

Why this tier
  • skills/logicapps-appinsights-query/scripts/Invoke-LogicAppInsightsQuery.ps1 is a high-risk path (automation, scripts, MCP config, hooks, or review policy)

Automated checks

Check Status Details
Line endings ✅ Passed Passed · logs
Spelling ✅ Passed Passed · logs
Generated README consistency ✅ Passed Passed · logs
Skill validation ✅ Passed Passed · logs
Skill lint (vally) ✅ Passed Passed · logs
Risk scan ✅ Passed Passed · logs
Contributor reputation ✅ Passed Passed · logs
Duplicate resource scan ✅ Passed Passed · logs
PR quality signal ⏭️ Skipped Skipped by its workflow · logs

Review

  • Approvals: 0/1
  • Assigned reviewer: not assigned yet — comment /request-review to ask for one
  • Review target date: not set
  • Still needed: 1 more approval(s); an approval from a maintainer with admin or maintain permission
  • The core-maintainers pool is not staffed yet; an approver with admin or maintain permission is required instead.

Commands

Command Who What it does
/rerun-checks PR author, maintainers Re-runs failed or incomplete checks and re-evaluates this gate
/request-review PR author, maintainers Asks the review rotation to assign a reviewer (adds needs-reviewer)

Updated for 289cbe7 · gate run · This comment is maintained automatically — see submission gate docs.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Vally Lint Results

⚠️ Warnings or advisories found

Scope Checked
Skills 1
Agents 1
Total 2
Severity Count
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 1

Summary

Level Finding
ℹ️ Vally currently lints SKILL.md content. Agent files were detected but skipped:
Full linter output
### Linting skills/logicapps-appinsights-query
✅ logicapps-appinsights-query (2/2 checks passed)
    ✓ [spec-compliance] All 1 skill(s) are spec-compliant.
        ✓ spec-compliance: All spec checks passed.
    ✓ [valid-refs] All file references across 1 skill(s) are valid.
        ✓ valid-refs: All file references resolve to existing files within the skill directory.

1 skill(s) linted, 1 passed

### Agent files detected (not linted by vally)
ℹ️ Vally currently lints SKILL.md content. Agent files were detected but skipped:
agents/logicapps-appinsights.agent.md

@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent PR touches agents merge-risk:high new-submission PR adds at least one new contribution ready-for-review Submission passed intake validation and is ready for maintainer review skills PR touches skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant