Skip to content
Azure Messaging SDK Troubleshooting

Azure Messaging SDK Troubleshooting Skill

Microsoft's official Azure skill for debugging Event Hubs and Service Bus SDKs: connection and AMQP errors, auth failures, lock-lost and lock-renewal issues, checkpoints and duplicates.

GitHub Docs

Install

Install with the skills CLI

One command for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf and dozens of other agents. Needs Node.js; the skill is fetched straight from microsoft/azure-skills.

$ npx skills add microsoft/azure-skills --skill azure-messaging

Run it in a terminal. The CLI finds the agents installed on your machine, asks which ones to add the skill to, and whether to install it into the folder you ran it from or for all your projects.

Other ways to install

Copy the whole skill folder — SKILL.md and any scripts or references beside it — into ~/.claude/skills/azure-messaging/, where Claude Code picks it up in every project. Only git is needed.

tmp=$(mktemp -d) && \
  git clone --depth 1 --branch main https://github.com/microsoft/azure-skills.git "$tmp" && \
  mkdir -p ~/.claude/skills && \
  cp -R "$tmp"/skills/azure-messaging ~/.claude/skills/azure-messaging

No scripts or references next to it? Saving the SKILL.md alone as ~/.claude/skills/azure-messaging/SKILL.md works too.

Using another agent? Its personal skills folder
Codex
~/.agents/skills/
Cursor
~/.cursor/skills/
GitHub Copilot
~/.copilot/skills/
Gemini CLI
~/.gemini/skills/
Windsurf
~/.codeium/windsurf/skills/
OpenCode
~/.config/opencode/skills/

About

  • Diagnoses Event Hubs and Service Bus SDK connection, auth and AMQP errors
  • Message and session lock lost, expiry and renewal problems
  • Stalled event processors, duplicate events and checkpoint offset resets
  • Six-step diagnosis workflow ending in a cited fix
  • Uses Azure MCP Event Hubs, Service Bus, Monitor and resource-health tools
  • Covers Python, Java, JavaScript and .NET clients

azure-messaging is one of the skills in microsoft/azure-skills, Microsoft's official agent plugin for Azure. It is a troubleshooting skill for the client SDKs of Azure Event Hubs and Azure Service Bus, the two messaging services where the errors an app sees (an AMQP link detach, a lost message lock, a processor that silently stops) rarely say what is actually wrong.

What it covers. Connection failures and AMQP link errors, idle timeouts and slow reconnects, message and session lock lost or expired, failed or batched lock renewal, event processors or message handlers that stop processing, duplicate events and checkpoint offset resets, and SDK configuration questions such as retry, prefetch and batch size. Its trigger list spans Python, Java, JavaScript and .NET clients.

Diagnosis workflow. Identify the SDK and version, check the namespace's health with the Azure MCP resource-health tool, match the error against the language-specific guide, search Microsoft Learn through the documentation tool, verify connection string, entity name and consumer group, then recommend a fix citing what it found.

Tools. Azure MCP's Event Hubs and Service Bus tools for listing namespaces, hubs, consumer groups, queues, topics and subscriptions, plus Monitor logs_query for KQL over diagnostic logs. The detailed per-language guides live in the sibling azure-diagnostics skill, so install both.

For developers running event-driven workloads on Azure. MIT licensed, authored by Microsoft.

Try it

Once installed, ask your agent something like:

Our .NET Service Bus processor logs 'The lock supplied is invalid' on long-running messages. Find out why and what to change.

SKILL.md

The instructions your agent loads, as published by Microsoft.

SKILL.md
name
azure-messaging
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.
license
MIT
metadata
author: Microsoft version: "1.2.1"

Azure Messaging SDK Troubleshooting

Quick Reference
PropertyValue
ServicesAzure Event Hubs, Azure Service Bus
MCP Toolsmcp_azure_mcp_eventhubs, mcp_azure_mcp_servicebus
Best ForDiagnosing 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
ToolCommandUse
mcp_azure_mcp_eventhubsNamespace/hub opsList namespaces, hubs, consumer groups
mcp_azure_mcp_servicebusQueue/topic opsList namespaces, queues, topics, subscriptions
mcp_azure_mcp_monitorlogs_queryQuery diagnostic logs with KQL
mcp_azure_mcp_resourcehealthgetCheck service health status
mcp_azure_mcp_documentationDoc searchSearch 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.
Install
New

Microsoft's official Azure skill for moving workloads from AWS, GCP and Heroku: assess the source, convert code and config, e.g. Lambda to Functions or Cloud Run to Container Apps.

New

Microsoft's official Azure skill for pre-deployment checks: validates azure.yaml, Bicep or Terraform, RBAC role assignments and managed identity permissions before an agent deploys.

Browse all skills →