Skip to content

Update azure-diagnostics Kubernetes references and snapshots#1146

Open
sammsft1 wants to merge 5 commits intomicrosoft:mainfrom
sammsft1:feature/troubleshoot-kubernetes
Open

Update azure-diagnostics Kubernetes references and snapshots#1146
sammsft1 wants to merge 5 commits intomicrosoft:mainfrom
sammsft1:feature/troubleshoot-kubernetes

Conversation

@sammsft1
Copy link

@sammsft1 sammsft1 commented Mar 5, 2026

Summary

This PR enhances the azure-diagnostics skill with Azure Kubernetes (AKS) troubleshooting coverage by adding dedicated reference documentation and updating trigger snapshots.

What changed

  • Updated plugin/skills/azure-diagnostics/SKILL.md

    • Expanded guidance to include AKS troubleshooting scenarios
    • Added/updated references to Kubernetes diagnostics content
  • Added AKS reference docs:

    • plugin/skills/azure-diagnostics/references/azure-kubernetes/README.md
    • plugin/skills/azure-diagnostics/references/azure-kubernetes/networking.md
    • plugin/skills/azure-diagnostics/references/azure-kubernetes/node-issues.md
  • Updated snapshot:

    • tests/azure-diagnostics/__snapshots__/triggers.test.ts.snap

Why

Users troubleshooting AKS workloads (pod failures, node issues, networking problems) should be guided by azure-diagnostics with clearer, service-specific references and expected trigger behavior.

Validation

  • Updated trigger snapshot to reflect intended skill behavior changes.
  • Verified skill routing/invocation behavior for diagnostics scenarios locally.

Notes

  • This PR focuses on diagnostics guidance and references (no deployment workflow changes).

Copilot AI review requested due to automatic review settings March 5, 2026 22:31
@microsoft-github-policy-service

@sammsft1 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"
Contributor License Agreement

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is effective as of the latest signature
date below.

  1. Definitions.
    “Code” means the computer software code, whether in human-readable or machine-executable form,
    that is delivered by You to Microsoft under this Agreement.
    “Project” means any of the projects owned or managed by Microsoft and offered under a license
    approved by the Open Source Initiative (www.opensource.org).
    “Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any
    Project, including but not limited to communication on electronic mailing lists, source code control
    systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of
    discussing and improving that Project, but excluding communication that is conspicuously marked or
    otherwise designated in writing by You as “Not a Submission.”
    “Submission” means the Code and any other copyrightable material Submitted by You, including any
    associated comments and documentation.
  2. Your Submission. You must agree to the terms of this Agreement before making a Submission to any
    Project. This Agreement covers any and all Submissions that You, now or in the future (except as
    described in Section 4 below), Submit to any Project.
  3. Originality of Work. You represent that each of Your Submissions is entirely Your original work.
    Should You wish to Submit materials that are not Your original work, You may Submit them separately
    to the Project if You (a) retain all copyright and license information that was in the materials as You
    received them, (b) in the description accompanying Your Submission, include the phrase “Submission
    containing materials of a third party:” followed by the names of the third party and any licenses or other
    restrictions of which You are aware, and (c) follow any other instructions in the Project’s written
    guidelines concerning Submissions.
  4. Your Employer. References to “employer” in this Agreement include Your employer or anyone else
    for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your
    Submission is made in the course of Your work for an employer or Your employer has intellectual
    property rights in Your Submission by contract or applicable law, You must secure permission from Your
    employer to make the Submission before signing this Agreement. In that case, the term “You” in this
    Agreement will refer to You and the employer collectively. If You change employers in the future and
    desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement
    and secure permission from the new employer before Submitting those Submissions.
  5. Licenses.
  • Copyright License. You grant Microsoft, and those who receive the Submission directly or
    indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the
    Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute
    the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third
    parties.
  • Patent License. You grant Microsoft, and those who receive the Submission directly or
    indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under
    Your patent claims that are necessarily infringed by the Submission or the combination of the
    Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and
    import or otherwise dispose of the Submission alone or with the Project.
  • Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement.
    No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are
    granted by implication, exhaustion, estoppel or otherwise.
  1. Representations and Warranties. You represent that You are legally entitled to grant the above
    licenses. You represent that each of Your Submissions is entirely Your original work (except as You may
    have disclosed under Section 3). You represent that You have secured permission from Your employer to
    make the Submission in cases where Your Submission is made in the course of Your work for Your
    employer or Your employer has intellectual property rights in Your Submission by contract or applicable
    law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You
    have the necessary authority to bind the listed employer to the obligations contained in this Agreement.
    You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS
    REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES
    EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS
    PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF
    NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
  2. Notice to Microsoft. You agree to notify Microsoft in writing of any facts or circumstances of which
    You later become aware that would make Your representations in this Agreement inaccurate in any
    respect.
  3. Information about Submissions. You agree that contributions to Projects and information about
    contributions may be maintained indefinitely and disclosed publicly, including Your name and other
    information that You submit with Your Submission.
  4. Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and
    the parties consent to exclusive jurisdiction and venue in the federal courts sitting in King County,
    Washington, unless no federal subject matter jurisdiction exists, in which case the parties consent to
    exclusive jurisdiction and venue in the Superior Court of King County, Washington. The parties waive all
    defenses of lack of personal jurisdiction and forum non-conveniens.
  5. Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and
    supersedes any and all prior agreements, understandings or communications, written or oral, between
    the parties relating to the subject matter hereof. This Agreement may be assigned by Microsoft.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enhances the azure-diagnostics skill’s AKS troubleshooting coverage by adding Kubernetes reference docs and updating the trigger snapshot to reflect the expanded scope.

Changes:

  • Expanded azure-diagnostics skill description and added AKS as a supported troubleshooting area.
  • Added AKS reference documentation for networking and node/cluster issue diagnosis.
  • Updated trigger snapshot keywords to align with the new description/content.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/azure-diagnostics/snapshots/triggers.test.ts.snap Updates trigger description/keyword snapshot to include AKS-related terms
plugin/skills/azure-diagnostics/SKILL.md Extends skill scope to AKS and links to new AKS references
plugin/skills/azure-diagnostics/references/azure-kubernetes/README.md Adds a top-level AKS troubleshooting landing page and common commands
plugin/skills/azure-diagnostics/references/azure-kubernetes/networking.md Adds networking troubleshooting decision trees and diagnostic commands
plugin/skills/azure-diagnostics/references/azure-kubernetes/node-issues.md Adds node/cluster troubleshooting guidance (NotReady, autoscaler, upgrades, etc.)

Comment on lines +97 to 101
"crashing",
"creating",
"debug",
"deploy",
"deploying",
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trigger keywords now include "deploy", which conflicts with the skill description’s “DO NOT USE FOR: deploying applications (use azure-deploy)”. This can cause mis-routing by matching user prompts about deploying. Consider adjusting the keyword extraction / trigger config so terms from the “DO NOT USE” section (or deploy-related stems like deploy) are excluded, then update the snapshot accordingly.

Copilot uses AI. Check for mistakes.
|---------|-------|-----|
| ADDRESS empty | LB not provisioned or wrong `ingressClassName` | Check controller service; set correct `ingressClassName` |
| 404 for all paths | No matching host rule | Check `host` field; `pathType: Prefix` vs `Exact` |
| 404 for some paths | Trailing slash mismatch | `Prefix /api` matches `/api/foo` not `/api` — add both |
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guidance is technically incorrect for Kubernetes Ingress pathType: Prefix semantics—/api should match /api as well as /api/... (and not match /apix). Please correct the statement so users don’t apply unnecessary or incorrect ingress rules.

Suggested change
| 404 for some paths | Trailing slash mismatch | `Prefix /api` matches `/api/foo` not `/api` — add both |
| 404 for some paths | Path / pathType mismatch | With `pathType: Prefix`, `/api` matches `/api` and `/api/...` but not `/apix`; with `Exact`, `/api` and `/api/` are different |

Copilot uses AI. Check for mistakes.
Comment on lines +140 to +141
kubectl get networkpolicy -n <ns> -o jsonpath='{range .items[?(@.spec.podSelector=={})]}
{.metadata.name}{"\n"}{end}'
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JSONPath example includes an embedded newline inside single quotes, which is easy to copy/paste incorrectly and can be confusing to readers. Consider rewriting this command as a single-line JSONPath (or use an explicit line continuation) to make it more robust for documentation consumers.

Suggested change
kubectl get networkpolicy -n <ns> -o jsonpath='{range .items[?(@.spec.podSelector=={})]}
{.metadata.name}{"\n"}{end}'
kubectl get networkpolicy -n <ns> -o jsonpath='{range .items[?(@.spec.podSelector=={})]}{.metadata.name}{"\n"}{end}'

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 5, 2026 22:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Comment on lines +102 to +103
- **azure-observability** - Monitoring and logging setup
``` No newline at end of file
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a trailing triple-backtick fence at the end of the file without a corresponding opening fence. This will break Markdown rendering for the tail of the document; remove the dangling fence.

Suggested change
- **azure-observability** - Monitoring and logging setup
```
- **azure-observability** - Monitoring and logging setup

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,153 @@
# Networking Troubleshooting

> For CNI-specific issues (IP exhaustion, Azure CNI Overlay, eBPF/Cilium, egress/UDR, private cluster egress), see `references/networking-cni.md`.
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path is likely incorrect relative to references/azure-kubernetes/ (it would resolve to references/azure-kubernetes/references/networking-cni.md). Use a correct relative path (or a proper Markdown link) so readers can navigate to the intended doc.

Suggested change
> For CNI-specific issues (IP exhaustion, Azure CNI Overlay, eBPF/Cilium, egress/UDR, private cluster egress), see `references/networking-cni.md`.
> For CNI-specific issues (IP exhaustion, Azure CNI Overlay, eBPF/Cilium, egress/UDR, private cluster egress), see [networking CNI troubleshooting](./networking-cni.md).

Copilot uses AI. Check for mistakes.
| Service endpoints unreachable from one zone | Topology-aware routing misconfigured | Check `service.spec.trafficDistribution` or TopologyKeys |
| Upgrade causing zone imbalance | Surge nodes in one zone | Configure `maxSurge` in node pool upgrade settings |

**ZRS storage for multi-AZ (recommended):** Prevents zone affinity conflicts on disk PVCs. Use `Premium_ZRS` or `StandardSSD_ZRS` as the `skuname` in a custom StorageClass. See `references/storage.md` for the ZRS StorageClass spec.
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The referenced path references/storage.md is likely incorrect relative to this directory (it would resolve under references/azure-kubernetes/references/). Update the reference to the correct relative path (and preferably make it a clickable Markdown link).

Suggested change
**ZRS storage for multi-AZ (recommended):** Prevents zone affinity conflicts on disk PVCs. Use `Premium_ZRS` or `StandardSSD_ZRS` as the `skuname` in a custom StorageClass. See `references/storage.md` for the ZRS StorageClass spec.
**ZRS storage for multi-AZ (recommended):** Prevents zone affinity conflicts on disk PVCs. Use `Premium_ZRS` or `StandardSSD_ZRS` as the `skuname` in a custom StorageClass. See [storage.md](../storage.md) for the ZRS StorageClass spec.

Copilot uses AI. Check for mistakes.
Comment on lines +14 to +15
kubectl run netdebug --image=curlimages/curl -it --rm -n <ns> -- \
curl -sv http://<service>.<ns>.svc.cluster.local:<port>/healthz
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The examples use an unpinned image (curlimages/curl) and a very old BusyBox tag (busybox:1.28). For safer, reproducible troubleshooting commands, pin to a specific, current tag (and consider a more security-focused debug image) to reduce the risk of pulling vulnerable or behavior-changing images.

Copilot uses AI. Check for mistakes.
Comment on lines +41 to +42
kubectl run dnstest --image=busybox:1.28 -it --rm -n <ns> -- \
nslookup <service-name>.<ns>.svc.cluster.local
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The examples use an unpinned image (curlimages/curl) and a very old BusyBox tag (busybox:1.28). For safer, reproducible troubleshooting commands, pin to a specific, current tag (and consider a more security-focused debug image) to reduce the risk of pulling vulnerable or behavior-changing images.

Copilot uses AI. Check for mistakes.
Comment on lines +14 to +16
| Condition | Value | Meaning | Fix Path |
|-----------|-------|---------|----------|
| `Ready` | `False` | kubelet stopped reporting | SSH to node or cordon + drain + delete |
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Markdown tables are written with a double leading pipe (||), which renders as an extra empty first column in GitHub Markdown. Replace || with a single leading | across these tables so they render with the intended columns.

Copilot uses AI. Check for mistakes.
Comment on lines +20 to +22
| Observation | Cause | Fix |
|-------------|-------|-----|
| Endpoints shows `<none>` | Label selector mismatch | Align selector with pod labels; check for typos |
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same table formatting issue here: the double leading pipe (||) creates an extra empty column. Use single | for proper GitHub Markdown table rendering.

Copilot uses AI. Check for mistakes.
---
name: azure-diagnostics
description: "Debug and troubleshoot production issues on Azure. Covers Container Apps and Function Apps diagnostics, log analysis with KQL, health checks, and common issue resolution for image pulls, cold starts, health probes, and function invocation failures. USE FOR: debug production issues, troubleshoot container apps, troubleshoot function apps, troubleshoot Azure Functions, analyze logs with KQL, fix image pull failures, resolve cold start issues, investigate health probe failures, check resource health, view application logs, find root cause of errors, function app not working, function invocation failures DO NOT USE FOR: deploying applications (use azure-deploy), creating new resources (use azure-prepare), setting up monitoring (use azure-observability), cost optimization (use azure-cost-optimization)"
description: "Debug and troubleshoot production issues on Azure. Covers Container Apps, Function Apps, and AKS diagnostics, log analysis with KQL, health checks, and common issue resolution for image pulls, cold starts, health probes, pod failures, node issues, and networking problems. USE FOR: debug production issues, troubleshoot container apps, troubleshoot function apps, troubleshoot Azure Functions, troubleshoot AKS, troubleshoot kubernetes, analyze logs with KQL, fix image pull failures, resolve cold start issues, investigate health probe failures, check resource health, view application logs, find root cause of errors, function app not working, function invocation failures, pod crashing, node not ready, kubernetes networking DO NOT USE FOR: deploying applications (use azure-deploy), creating new resources (use azure-prepare), setting up monitoring (use azure-observability), cost optimization (use azure-cost-optimization)"
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated trigger snapshot now includes deploy as an extracted keyword, even though deployment requests are explicitly in the “DO NOT USE” section. This can increase false-positive routing of deployment-related prompts to azure-diagnostics. Consider rephrasing the “DO NOT USE” section (or formatting skill names) to avoid emitting bare deployment keywords, or adjust the keyword extraction to ignore the negative-use section.

Suggested change
description: "Debug and troubleshoot production issues on Azure. Covers Container Apps, Function Apps, and AKS diagnostics, log analysis with KQL, health checks, and common issue resolution for image pulls, cold starts, health probes, pod failures, node issues, and networking problems. USE FOR: debug production issues, troubleshoot container apps, troubleshoot function apps, troubleshoot Azure Functions, troubleshoot AKS, troubleshoot kubernetes, analyze logs with KQL, fix image pull failures, resolve cold start issues, investigate health probe failures, check resource health, view application logs, find root cause of errors, function app not working, function invocation failures, pod crashing, node not ready, kubernetes networking DO NOT USE FOR: deploying applications (use azure-deploy), creating new resources (use azure-prepare), setting up monitoring (use azure-observability), cost optimization (use azure-cost-optimization)"
description: "Debug and troubleshoot production issues on Azure. Covers Container Apps, Function Apps, and AKS diagnostics, log analysis with KQL, health checks, and common issue resolution for image pulls, cold starts, health probes, pod failures, node issues, and networking problems. USE FOR: debug production issues, troubleshoot container apps, troubleshoot function apps, troubleshoot Azure Functions, troubleshoot AKS, troubleshoot kubernetes, analyze logs with KQL, fix image pull failures, resolve cold start issues, investigate health probe failures, check resource health, view application logs, find root cause of errors, function app not working, function invocation failures, pod crashing, node not ready, kubernetes networking. AVOID USING FOR: application rollouts or releases (instead, use the `azure-deploy` skill), creating new resources or environments (use the `azure-prepare` skill), configuring or tuning monitoring (use the `azure-observability` skill), or cost analysis and optimization (use the `azure-cost-optimization` skill)."

Copilot uses AI. Check for mistakes.
sammsft1 added 2 commits March 6, 2026 02:01
Also, updating the networking and node issues references to provide more comprehensive troubleshooting steps for Kubernetes on Azure.
4. **Isolate the issue** - Pod-level, node-level, or cluster-level?
5. **Apply targeted fixes** - Use the appropriate troubleshooting section

## Troubleshooting Sections

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the reference files directly in this section - which one aligns with which troubleshooting section?


## Troubleshooting Sections

### Pod Failures & Application Issues

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we take out any categories which we don't have reference files for temporarily, we can add them back in when we create the reference files. So pod issues, cluster issues should be removed for now


---

## Common Diagnostic Commands

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should move the commands and any general advice to the actual reference files. The README should be very concise and serve as redirection to the right reference file depending on the troubleshooting scenario

Copilot AI review requested due to automatic review settings March 10, 2026 20:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Comments suppressed due to low confidence (1)

plugin/skills/azure-diagnostics/SKILL.md:7

  • metadata.version is still 1.0.0 even though this skill was modified. Per skill authoring guidelines, bump the semver version in the frontmatter in the same PR whenever SKILL.md changes.
description: "Debug and troubleshoot production issues on Azure. Covers Container Apps, Function Apps, and Azure Kubernetes Service diagnostics, log analysis with KQL, health checks, and common issue resolution for image pulls, cold starts, health probes, pod failures, node issues, and networking problems. USE FOR: debug production issues, troubleshoot container apps, troubleshoot function apps, troubleshoot Azure Functions, troubleshoot AKS, troubleshoot kubernetes, analyze logs with KQL, fix image pull failures, resolve cold start issues, investigate health probe failures, check resource health, view application logs, find root cause of errors, function app not working, function invocation failures, pod crashing, node not ready, kubernetes networking DO NOT USE FOR: deploying applications (use azure-deploy), creating new resources (use azure-prepare), setting up monitoring (use azure-observability), cost optimization (use azure-cost-optimization)"
license: MIT
metadata:
  author: Microsoft
  version: "1.0.0"

## Common Pod Diagnostic Commands

```bash
# List unhealthy pods across all namespaces
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command is labeled as listing “unhealthy pods”, but --field-selector=status.phase!=Running,... will miss many unhealthy pods that are still in phase Running (e.g., CrashLoopBackOff, Running but not Ready). Consider renaming the comment to “non-running pods” and/or adding an additional check for NotReady/CrashLoopBackOff pods (e.g., filter by READY column or status reason).

Suggested change
# List unhealthy pods across all namespaces
# List non-running pods across all namespaces

Copilot uses AI. Check for mistakes.
Comment on lines +17 to +26
# 4. Unhealthy pods
kubectl get pods -A --field-selector=status.phase!=Running,status.phase!=Succeeded

# 5. All pods overview
kubectl get pods -A -o wide

# 6. System pods health
kubectl get pods -n kube-system -o wide

# 7. Activity log
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the “What happened in my cluster?” flow, step 4 is labeled “Unhealthy pods” but uses a phase-based field selector that only catches non-Running/non-Succeeded pods and will miss common AKS issues where pods are Running but unhealthy (CrashLoopBackOff, readiness probe failures, etc.). Update the wording or add an additional command to surface Running-but-unhealthy pods.

Suggested change
# 4. Unhealthy pods
kubectl get pods -A --field-selector=status.phase!=Running,status.phase!=Succeeded
# 5. All pods overview
kubectl get pods -A -o wide
# 6. System pods health
kubectl get pods -n kube-system -o wide
# 7. Activity log
# 4. Non-running pods
kubectl get pods -A --field-selector=status.phase!=Running,status.phase!=Succeeded
# 5. Running but unhealthy pods (CrashLoopBackOff, failing probes, etc.)
kubectl get pods -A | egrep 'CrashLoopBackOff|ImagePullBackOff|ErrImagePull|Error'
# 6. All pods overview
kubectl get pods -A -o wide
# 7. System pods health
kubectl get pods -n kube-system -o wide
# 8. Activity log

Copilot uses AI. Check for mistakes.
exports[`azure-diagnostics - Trigger Tests Trigger Keywords Snapshot skill description triggers match snapshot 1`] = `
{
"description": "Debug and troubleshoot production issues on Azure. Covers Container Apps and Function Apps diagnostics, log analysis with KQL, health checks, and common issue resolution for image pulls, cold starts, health probes, and function invocation failures. USE FOR: debug production issues, troubleshoot container apps, troubleshoot function apps, troubleshoot Azure Functions, analyze logs with KQL, fix image pull failures, resolve cold start issues, investigate health probe failures, check resource health, view application logs, find root cause of errors, function app not working, function invocation failures DO NOT USE FOR: deploying applications (use azure-deploy), creating new resources (use azure-prepare), setting up monitoring (use azure-observability), cost optimization (use azure-cost-optimization)",
"description": "Debug and troubleshoot production issues on Azure. Covers Container Apps, Function Apps, and AKS diagnostics, log analysis with KQL, health checks, and common issue resolution for image pulls, cold starts, health probes, pod failures, node issues, and networking problems. USE FOR: debug production issues, troubleshoot container apps, troubleshoot function apps, troubleshoot Azure Functions, troubleshoot AKS, troubleshoot kubernetes, analyze logs with KQL, fix image pull failures, resolve cold start issues, investigate health probe failures, check resource health, view application logs, find root cause of errors, function app not working, function invocation failures, pod crashing, node not ready, kubernetes networking DO NOT USE FOR: deploying applications (use azure-deploy), creating new resources (use azure-prepare), setting up monitoring (use azure-observability), cost optimization (use azure-cost-optimization)",
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The snapshot description still says "AKS diagnostics", but plugin/skills/azure-diagnostics/SKILL.md frontmatter now says "Azure Kubernetes Service diagnostics". This looks like an out-of-date snapshot and will fail tests; regenerate the trigger snapshots from the updated skill content/metadata.

Suggested change
"description": "Debug and troubleshoot production issues on Azure. Covers Container Apps, Function Apps, and AKS diagnostics, log analysis with KQL, health checks, and common issue resolution for image pulls, cold starts, health probes, pod failures, node issues, and networking problems. USE FOR: debug production issues, troubleshoot container apps, troubleshoot function apps, troubleshoot Azure Functions, troubleshoot AKS, troubleshoot kubernetes, analyze logs with KQL, fix image pull failures, resolve cold start issues, investigate health probe failures, check resource health, view application logs, find root cause of errors, function app not working, function invocation failures, pod crashing, node not ready, kubernetes networking DO NOT USE FOR: deploying applications (use azure-deploy), creating new resources (use azure-prepare), setting up monitoring (use azure-observability), cost optimization (use azure-cost-optimization)",
"description": "Debug and troubleshoot production issues on Azure. Covers Container Apps, Function Apps, and Azure Kubernetes Service diagnostics, log analysis with KQL, health checks, and common issue resolution for image pulls, cold starts, health probes, pod failures, node issues, and networking problems. USE FOR: debug production issues, troubleshoot container apps, troubleshoot function apps, troubleshoot Azure Functions, troubleshoot AKS, troubleshoot kubernetes, analyze logs with KQL, fix image pull failures, resolve cold start issues, investigate health probe failures, check resource health, view application logs, find root cause of errors, function app not working, function invocation failures, pod crashing, node not ready, kubernetes networking DO NOT USE FOR: deploying applications (use azure-deploy), creating new resources (use azure-prepare), setting up monitoring (use azure-observability), cost optimization (use azure-cost-optimization)",

Copilot uses AI. Check for mistakes.
Comment on lines 28 to 31
"debug",
"deploy",
"deploying",
"diagnostic",
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The snapshot includes the keyword deploy, but with the current TriggerMatcher implementation this keyword is only added if it appears in skill.content (SKILL.md body) or as a >3-char word in metadata.description. azure-diagnostics/SKILL.md body doesn't contain "deploy" and the description contains "deploying"/"azure-deploy" (not deploy), so this entry likely indicates the snapshot wasn’t regenerated from the current sources.

Copilot uses AI. Check for mistakes.
@JasonYeMSFT
Copy link
Member

@sammsft1 Please resolve the merge conflicts and address copilots. Explain what change you made or why you chose not to make any change for each comment.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants