microsoft/azure-skills

azure-messagingmicrosoft/azure-skills / skills/azure-messaging/SKILL.md

按资源健康、错误与 SDK 配置定位消息收发失败

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

azure-messaging 是什么?

azure-messaging 排查 Event Hubs 与 Service Bus SDK 的连接、认证、AMQP、消息锁、会话锁、重连和 checkpoint 问题。它结合具体语言版本、命名空间健康、日志和客户端配置,避免把“没收到消息”直接归为服务故障。

中文说明由本站依据来源整理;英文原文保留在页面下方。

同名项目,请核对仓库和目录

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 azure-messaging,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 azure-messaging

请在 Codex 的当前工作环境中安装并检查 azure-messaging 这个 Skill。

项目身份:microsoft/azure-skills / azure-messaging
来源:https://github.com/microsoft/azure-skills/blob/65922d293cba61a40d5edf61a9eb4b6b0e799788/skills/azure-messaging/SKILL.md
已定位的源文件:skills/azure-messaging/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 准备服务类型、SDK 语言/版本、完整错误、实体名称与故障时间;实际读取可用 Event Hubs/Service Bus、Monitor、Resource Health 和文档工具。分享连接资料时不要把凭证当作排障正文。

会得到什么

  • 与 SDK 错误和真实资源对应的诊断依据、配置核对项和带文档来源的修复建议。

实际使用顺序

  1. 先从工程或报错识别 SDK 和版本,同时用 Resource Health 检查命名空间状态。
  2. 将完整错误与语言对应排障资料比对,并用文档工具检索 Microsoft Learn;按需要查 Monitor 的 logs_query,而不是看到超时就无限重试。
  3. 核对连接目标、队列/主题/订阅或 consumer group,以及 retry、prefetch、batch、锁续期和 checkpoint 配置。根据匹配文档提出修复,并区分事件重复、offset 重置与真正未收到。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学任务:使用 azure-messaging,排查我提供的 Service Bus SDK MessageLockLost 报错。我会附 SDK 版本、处理耗时、锁续期设置与错误时段。请先核对命名空间健康,再找匹配语言的 Learn 排障资料,判断处理时长、批量与续期配置有哪些证据支持;本轮不修改队列。
预期结果

预期得到与锁丢失有关的可区分原因和配置建议;本站未运行消息收发或复现错误。

使用前先看这些限制

使用条件与边界

  • 该技能面向 Event Hubs 与 Service Bus SDK,不覆盖 Azure Queue Storage 的全部行为。
  • 资源健康正常不等于客户端认证、实体名和消费组配置正确,需分层检查。
针对这个 Skill 的疑问

常见问题

队列有消息但消费者收不到,是服务宕机吗?

不能直接下结论。该流程先看资源健康,再结合 SDK 错误、实体/订阅或 consumer group、连接与处理配置判断。服务端健康只是其中一层证据。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-17T10:53:18.234Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/azure-messaging/SKILL.md · 抓取时间 2026-11-17T10:53:18.234Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, service bus queue issue, topic subscription error, enable logging event hub, service bus logging, eventhub python, servicebus java, eventhub javascript, servicebus dotnet, event hub checkpoint, event hub not receiving messages, service bus dead letter, batch processing lock, session lock expired, idle timeout, connection inactive, link detach, slow reconnect, session error, duplicate events, offset reset, receive batch.

查看源文件章节 / Source sections
  • 原文:Azure Messaging SDK Troubleshooting
  • 原文:Quick Reference
  • 原文:When to Use This Skill
  • 原文:MCP Tools
  • 原文:Diagnosis Workflow
  • 原文:Troubleshooting Guides
  • 原文:References
原文:Quick Reference

| Property | Value | |----------|-------| | **Services** | Azure Event Hubs, Azure Service Bus | | **MCP Tools** | `mcp_azure_mcp_eventhubs`, `mcp_azure_mcp_servicebus` | | **Best For** | Diagnosing SDK connection, auth, and message processing issues |

原文:When to Use This Skill

- SDK connection failures, auth errors, or AMQP link errors - Idle timeout, connection inactivity, or slow reconnection after disconnect - AMQP link detach or detach-forced errors - Message lock lost, message lock expired, lock renewal failures, or batch lock timeouts - Session lock lost, session lock expired, or session receiver errors - Event processor or message handler stops processing - Duplicate events or checkpoint offset resets - SDK configuration questions (retry, prefetch, batch size, receive batch behavior)

原文:MCP Tools

| Tool | Command | Use | |------|---------|-----| | `mcp_azure_mcp_eventhubs` | Namespace/hub ops | List namespaces, hubs, consumer groups | | `mcp_azure_mcp_servicebus` | Queue/topic ops | List namespaces, queues, topics, subscriptions | | `mcp_azure_mcp_monitor` | `logs_query` | Query diagnostic logs with KQL | | `mcp_azure_mcp_resourcehealth` | `get` | Check service health status | | `mcp_azure_mcp_documentation` | Doc search | Search Microsoft Learn for troubleshooting docs |

原文:Diagnosis Workflow

1. **Identify the SDK and version** — Check the prompt for SDK and version clues; if not stated, proceed with diagnosis and ask later if needed 2. **Check resource health** — Use `mcp_azure_mcp_resourcehealth` to verify the namespace is healthy 3. **Review the error message** — Match against language-specific troubleshooting guide 4. **Look up documentation** — Use `mcp_azure_mcp_documentation` to search Microsoft Learn for the error or topic 5. **Check configuration** — Verify connection string, entity name, consumer group 6. **Recommend fix** — Apply remediation, citing documentation found

原文:Troubleshooting Guides

Connectivity, SDK, and auth troubleshooting guides are located in the azure-diagnostics skill under `troubleshooting/messaging/`.

原文:References

- Use `mcp_azure_mcp_documentation` to search Microsoft Learn for latest guidance.

文件 SHA256:36f2b20f79c68f86a8dfe4d539c64971eecece198646dfb9080d7afa233210fa

仓库许可证记录:未提供;skill-declaration-captured-not-interpreted,查看来源。

Skills.sh收录简介 · 2026-07-28

Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识azure-messaging
来源仓库microsoft/azure-skills
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次25
快照累计安装量471400

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源