AGENT SKILL

网络连通性故障排查

connectivity-triage

适用于学生无法访问平台或操作在网络/边缘层失败的任何 Zava Learning 事件——测验启动失败、门户 5xx、请求超时或后端显示不健康。根据遥测数据和 Azure 配置追踪完整请求路径(Application Gateway -> NSG -> Container Apps 内部负载均衡器 -> APIs),找到故障环节,并在允许的操作边界内进行修复。

适用职业SRE 工程师
License 许可
MIT
最近更新
2026-11-10
Stars
★ 189
Forks
198

01 前言 Front Matter

name
connectivity-triage
tools
[ "RunAzCliReadCommands", "RunAzCliWriteCommands", "GetAzCliHelp", "SearchMemory", "microsoft-learn_microsoft_docs_search", "microsoft-learn_microsoft_docs_fetch" ]
metadata
{ "kind": "Skill", "api_version": "azuresre.ai/v2" }
description
Use for any Zava Learning incident where students cannot reach the platform or actions fail at the network/edge layer — quiz launches failing, portal 5xx, requests timing out, or backends appearing unhealthy. Traces the full request path (Application Gateway -> NSG -> Container Apps internal load balancer -> APIs) from telemetry and Azure config, finds the broken hop, and remediates within the permitted-action boundary.

03 SKILL.md 正文

Zava Learning — Connectivity / Edge Incident Runbook

Resource Group: @@RG@@. Public entry: Application Gateway -> learner-portal (Container App, internal ingress) -> course-api / assessment-api (environment-internal). App Insights cloud_RoleName values: learner-portal, course-api, assessment-api.

Diagnose root cause from telemetry and configuration, then remediate within the boundary below. Do NOT guess the cause from the alert name — the alert is symptom-only by design.

Trace the path, hop by hop

  1. Application Gateway — backend health (az network application-gateway show-backend-health), probe path/host, HTTP settings. A probe pointed at a path the portal doesn't serve marks the backend unhealthy and yields 502s.
  2. NSG on the Container Apps subnet — list effective rules. A higher-priority DENY can beat a lower-priority ALLOW (priority inversion) and silently block App Gateway -> apps.
  3. Container Apps internal load balancer / ingress — revision health, replica counts.
  4. APIs — are course-api / assessment-api answering and healthy?

Use the built-in network troubleshooting skills (network_connectivity_troubleshoot, application_gateway_troubleshoot, load_balancer_troubleshoot, network_topology_mapper) to go deep on any hop. Filter App Insights/LAW queries by the relevant cloud_RoleName.

Permitted autonomous actions

  • Neutralize a blocking NSG rule with a non-destructive update, not a delete: run az network nsg rule update ... --access Allow (or raise the DENY rule's --priority above the ALLOW). The write tool restricts delete/remove, and an update achieves the same effect — so never reach for az network nsg rule delete.
  • Correct an Application Gateway probe path / HTTP settings back to a healthy configuration.
  • Restart a Container Apps revision.

Azure CLI usage (avoid avoidable command failures)

  • Do not pass -o/--output or --query to RunAzCliReadCommands. The read tool already returns JSON — adding -o json, -o table, or a --query projection makes the command fail with a generic "Unknown error occurred." Run the plain command (e.g. az network nsg rule list --nsg-name ... --include-default) and pick out the fields you need from the JSON in your reasoning.
  • If any read still returns "Unknown error occurred," just retry the plain command once — the first tool call in a session can fail transiently. Do not conclude the resource is broken.
  • Always pass --subscription and prefer resource IDs to avoid ambiguity. Consult GetAzCliHelp before an unfamiliar write flag rather than guessing syntax.

Incident communication (PagerDuty)

Record the request-path diagram and your diagnostic notes for the incident record. PagerDuty acknowledgement, status/summary notes, and resolution are owned by the pagerduty-incident-update skill.

Code & change management

  • For an Infrastructure-as-Code root cause, the infra lives under infra/ in @@REPO@@ (the NSG is defined in infra/modules/network.bicep). After the live mitigation, the durable fix is delivered as a GitHub pull request by the pr-delivery skill and recorded as a Change Request by servicenow-change-management.

Out of scope (require human approval)

  • VNet address-space changes, subnet deletion, IAM modifications, App Gateway SKU/tier changes.

Verification

Re-check the hop you changed, confirm the public endpoint returns 200 on / and /api/quiz/*, and confirm the alert auto-mitigated.

04 同仓库更多 Skills

microsoft
microsoft/sre-agent

Zava 事件分析报告生成

zava-reporting

用于将已完成的 Zava Learning 事件分析打包呈现给受众。首先呈现带品牌标识的线程内执行摘要(内联前后对比视觉效果的 markdown),然后生成可下载的交付物——PowerPoint 演示文稿、HTML 电子邮件和 Teams 通知,使用 Zava 企业模板。调用的 agent 可将其缩小为子集(例如仅 HTML 报告)。产出内容和工件;它不负责发送。组装 rca-analysis、evidence-before-after、recommendations-next-steps 和 pr-delivery 的输出。

SRE 工程师安全事件响应与威胁狩猎
★ 189
microsoft
microsoft/sre-agent

Zava 治理审计报告生成

zava-audit-report

用于将已完成的 Zava Learning 每周治理审计(NSG/网络安全、RBAC/最小权限或云成本)打包成一份采用 Zava 企业风格、带品牌标识的可下载 PowerPoint 演示文稿。调用的审计 agent 传入其发现结果(带严重级别的条目列表)和简短的安全态势摘要;本技能渲染演示文稿、应用脱敏处理,并返回附件下载链接。产出工件本身;它不负责发送。

云架构师云合规与数据边界管理
★ 189
microsoft
microsoft/sre-agent

ServiceNow 变更请求管理

servicenow-change-management

当 Zava Learning 调查产生了需要变更管理的持久性修复时使用——在为基础设施即代码或应用代码的根本原因打开 GitHub PR 之后,提出引用该 PR 的 ServiceNow 变更请求并附上 RCA 报告。是 ServiceNow 变更请求及附件操作的唯一负责方。

SRE 工程师部署与发布管理
★ 189
microsoft
microsoft/sre-agent

敏感信息脱敏

redaction-guard

每当要输出操作员可见的内容时使用——聊天/话题消息、PagerDuty 或 ServiceNow 记录、提交信息或拉取请求正文,或任何报告制品(HTML、PowerPoint、Teams 卡片)。确定性地屏蔽密钥、凭证、令牌、私钥、URI 中嵌入的密码以及个人身份信息(PII),确保它们不会出现在对话或任何交付物中。这是一项横切护栏,由产生输出的技能调用,而非一个操作手册步骤。

安全工程师凭证与密钥管理
★ 189
microsoft
microsoft/sre-agent

事件改进建议

recommendations-next-steps

用于为 Zava Learning 事件生成前瞻性的建议和后续步骤——包括按优先级排序的预防性、检测性和流程性行动,并附带负责人、目标日期和不采取行动的风险。其输出用于 zava-reporting 交付物。

SRE 工程师安全事件响应与威胁狩猎
★ 189
microsoft
microsoft/sre-agent

事件根因分析

rca-analysis

用于为已解决或已缓解的 Zava Learning 事件生成根因分析叙述——包括事件时间线、触发因素与潜在根因(5-Whys)、促成因素以及如何呈现这些内容。定义 RCA 章节格式;其输出用于前后对比、建议和报告等交付物。

SRE 工程师安全事件响应与威胁狩猎
★ 189