installskill

Skills / microsoft/azure-skills

azure-diagnostics

用 AppLens、Azure Monitor 和资源健康状态排查 Azure 生产问题。

钉定的 commit
784702099804提交时间 2026-11-20
文件数
54231 KB
许可证
MIT
快照时间
2026-11-28
Skill 自带的描述
Debug Azure production issues using AppLens, Azure Monitor, resource health, and safe triage, including evidence-only diagnosis without live access. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, container app 503 or target port mismatch, troubleshoot functions, function telemetry missing or stopped after a config/connection-string change, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, lock renewal during long-running processing, service bus dead letter.

Agent 就是根据这段文字决定何时使用这个 skill。

安装

先选你的 agent。标有“已钉定”的命令,装到的就是本页描述的这个 commit。

Skill 目录 .claude/skills/Claude Code · 官方文档

不读取通用的 .agents/skills 目录。skill 必须放进 .claude/skills,或者随 plugin 一起安装。

GitHub CLI已钉定

$ gh skill install microsoft/azure-skills skills/azure-diagnostics --agent claude-code --pin 7847020998043c6231929b364c35393b7cdab270

gh 会按 agent 自行决定安装目录,文件夹沿用源目录名(azure-diagnostics),并在 SKILL.md 的 frontmatter 里写入来源信息,所以下方的内容哈希对不上。请改为核对它写入的 github-tree-sha,应当是 8125278b1d1e010f686c157307ee86502fd92474。

skills CLI已钉定

$ npx skills add microsoft/azure-skills@7847020998043c6231929b364c35393b7cdab270 --skill azure-diagnostics -a claude-code --copy

会从 npm 下载并运行 skills 包。--copy 表示写入真实文件而不是符号链接。该 CLI 默认发送匿名遥测,设置 DISABLE_TELEMETRY=1 可关闭,但同时也会关闭它的安全审计查询。

纯 git已钉定

$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/microsoft/azure-skills.git "$tmp"
$ git -C "$tmp" checkout --quiet 7847020998043c6231929b364c35393b7cdab270
$ mkdir -p .claude/skills
$ cp -R "$tmp/skills/azure-diagnostics" .claude/skills/azure-diagnostics

不依赖额外工具。文件与上游逐字节一致,安装到 .claude/skills/azure-diagnostics,可以直接用下方的内容哈希核对。

核对装到的内容

装完后运行这条命令,它会为整个目录输出一个 SHA-256。如果安装器报告的目录与这里不同,请 cd 到那个目录。

$ cd .claude/skills/azure-diagnostics && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256

预期结果74f8f2897454b789a0d7136f21b1429d76d6f989347a06ead7804fd8fb03e8f8

只有文件与上游逐字节一致时才会相同。不一致说明有东西变了:可能是安装器改的、你自己改的,或者上游改的。

里面有什么

在文件里匹配到的模式,每条都链接到所在的行。匹配到只表示这里值得读一读,不是结论;没匹配到也不代表不存在。

文档 · 41脚本 · 12SKILL.md · 1

执行命令79

会启动其他进程的代码,或说明文档里的 shell 代码块。

脚本中 0 处 · 文档及其他文本文件中 79 处

访问网络5

从远程主机获取数据或向其发送数据的调用。

脚本中 1 处 · 文档及其他文本文件中 4 处

安装依赖包未匹配

在使用时拉取并运行第三方包的命令。

读取环境变量或凭证6

引用了环境变量、token、密钥或凭证文件。

脚本中 0 处 · 文档及其他文本文件中 6 处

提权或破坏性操作1

sudo、递归删除、修改权限等命令。

脚本中 0 处 · 文档及其他文本文件中 1 处

动态或编码后的代码未匹配

eval、exec、base64 解码、管道执行远程脚本等,会掩盖实际运行的内容。

提到的外部域名

文本文件中所有 URL 的域名。

  • learn.microsoft.com×79
  • github.com×19
  • app.scm.azurewebsites.net×2
  • app.azurewebsites.net×1
  • app.region.azurecontainerapps.io×1
  • azure.status.microsoft×1
  • documentation.ubuntu.com×1

值得多看一眼的条目

没有符号链接、子模块、隐藏文件、压缩包、已编译文件,也没有未扫描的文件。

文件清单

钉定 commit 上该 skill 目录里的全部文件。

内容哈希
74f8f2897454b789a0d7136f21b1429d76d6f989347a06ead7804fd8fb03e8f8
Git tree SHA
8125278b1d1e010f686c157307ee86502fd92474
路径类型大小SHA-256
SKILL.mdSKILL.md8.9 KB31d5fe597458076b…
references/app-service/README.md文档7.8 KBcf43af284241ce4b…
references/azure-resource-graph.md文档2.8 KBcd7cf01f8f74983a…
references/container-apps/README.md文档3.5 KB84e55cea1303be83…
references/functions/README.md文档3.9 KB68e9d73865fd465b…
references/functions/durable.md文档7.6 KB9d43d0b29c17cca9…
references/functions/triggers.md文档12 KBee57b25ff768792b…
references/kql-queries.md文档1.3 KB3a784ff92bb90e09…
scripts/aks-baseline.ps1脚本7.4 KBf61e3158363103a2…
scripts/aks-baseline.sh脚本 · 可执行7.0 KB2772e90323cab531…
scripts/appservice-diagnostics.ps1脚本2.7 KB1fcc0d0b07ecace5…
scripts/appservice-diagnostics.sh脚本3.3 KB210e25beeaf94116…
scripts/containerapp-diagnostics.ps1脚本2.5 KBf01c4a47de3c01d2…
scripts/containerapp-diagnostics.sh脚本3.1 KBf393206b606e0d5d…
显示全部文件 (54)
scripts/pod-evidence.ps1脚本6.6 KBec95c20067b66df2…
scripts/pod-evidence.sh脚本7.1 KBcb6bbea2957017f1…
scripts/run-ig.ps1脚本5.6 KB044c1311c7be68ff…
scripts/run-ig.sh脚本6.5 KB35a64f1d4da8c3c1…
scripts/test-messaging-connectivity.ps1脚本6.3 KBa42d229408b4281f…
scripts/test-messaging-connectivity.sh脚本 · 可执行6.8 KBcf6d212b403a8846…
troubleshooting/aks/aks-troubleshooting.md文档9.2 KB37a141177815d3bd…
troubleshooting/aks/general-diagnostics.md文档2.0 KB8acf6259604ef912…
troubleshooting/aks/load-balancer-and-ingress.md文档3.6 KB411fe1e7af9b0720…
troubleshooting/aks/network-policy.md文档832 B557901c258eb637b…
troubleshooting/aks/networking.md文档5.5 KB75ec5358fc5baff4…
troubleshooting/aks/node-issues.md文档4.7 KB1913b8383ecf748e…
troubleshooting/aks/optional-aks-operations.md文档2.3 KB96d5598e05b4dd0e…
troubleshooting/aks/pod-failures.md文档7.6 KB930c8da84023a13d…
troubleshooting/aks/references/aks-mcp.md文档2.3 KB6377b54c5828aff1…
troubleshooting/aks/references/command-flows.md文档4.1 KB130392554d7d93ba…
troubleshooting/aks/references/inspektor-gadget.md文档7.6 KBc78220ece086363f…
troubleshooting/aks/references/structured-input-modes.md文档1.5 KBeb1d1efe70567b55…
troubleshooting/aks/spot-and-zone-issues.md文档2.5 KB00531f4c15aafa5d…
troubleshooting/aks/upgrade-operations.md文档2.2 KBa159e73391f2436c…
troubleshooting/compute/references/cannot-connect-to-vm.md文档3.1 KBd49c4ac1447e343c…
troubleshooting/compute/references/credential-auth-errors.md文档2.3 KB741fdd4facf000dd…
troubleshooting/compute/references/firewall-blocking.md文档2.3 KBa855444fd7d42a1f…
troubleshooting/compute/references/network-connectivity.md文档2.5 KB0d4dab14b9ee2b8f…
troubleshooting/compute/references/rdp-connectivity.md文档2.7 KBe3d5a70e4a027e63…
troubleshooting/compute/references/rdp-service-config.md文档3.2 KB1a6e3bb20d6e7ae9…
troubleshooting/compute/references/ssh-connectivity.md文档2.9 KBe9346d563a9a9d89…
troubleshooting/compute/references/vm-agent-not-responding.md文档3.6 KB270c2b73af1ac40d…
troubleshooting/compute/vm-troubleshooting.md文档3.3 KB4f25c141241dbc0f…
troubleshooting/messaging/README.md文档1.6 KB060a285a2fab6038…
troubleshooting/messaging/auth-best-practices.md文档6.1 KB34f6fe88e2b5819c…
troubleshooting/messaging/azure-eventhubs-dotnet.md文档3.5 KBd168fd1529ad8654…
troubleshooting/messaging/azure-eventhubs-java.md文档3.2 KBf81e0671f1472545…
troubleshooting/messaging/azure-eventhubs-js.md文档2.7 KBf4794520b65453a9…
troubleshooting/messaging/azure-eventhubs-py.md文档4.3 KB4511039cc6ce513e…
troubleshooting/messaging/azure-servicebus-dotnet.md文档2.5 KB49ee74f9327aa2fe…
troubleshooting/messaging/azure-servicebus-java.md文档2.2 KBd5c07b964c79225c…
troubleshooting/messaging/azure-servicebus-js.md文档2.4 KBef4131010dbaa59f…
troubleshooting/messaging/azure-servicebus-py.md文档2.3 KB274162fa4cec6f96…
troubleshooting/messaging/service-troubleshooting.md文档5.1 KB056d3ee490ff20d1…

规范与可移植性

对照 Agent Skills 规范检查。

Frontmatter
可解析为 YAML
名称与目录名一致
是
名称只含小写字母、数字和连字符
是
描述长度
983上限 1,024 个字符
SKILL.md 正文
162 行规范建议不超过 500 行
规范之外的字段
无
许可证字段
MIT
许可证文件
未声明
仓库许可证
LICENSE (MIT)

变更记录

自首次快照以来没有记录到变更,首次快照时间 2026-11-28。

用订阅工具跟踪这个 skill 的变更: Atom 订阅源 · 全部 skill

这个 skill 变更时邮件通知我

邮件提醒还没有做好。留下邮箱,功能上线时我们会写信告诉你一次。上面的订阅源现在就能用。

我们只保存你的邮箱、这个 skill 的名称和日期,不作其他用途。