PluginBench
Skill
Official
Pass
Audit score 90

azure-messaging

microsoft/azure-skills

Troubleshoot Azure Event Hubs and Service Bus SDK issues: connections, auth, AMQP errors, and message processing

What is azure-messaging?

azure-messaging is a skill for coding agents that guides diagnosis and resolution of Azure Messaging SDK problems across Event Hubs and Service Bus. It covers connection failures, AMQP link errors, authentication issues, message/session lock problems, duplicate events, checkpoint resets, and SDK configuration. The skill uses MCP tools to inspect namespace health, query diagnostic logs, and search Microsoft Learn documentation, then recommends targeted fixes.

  • Diagnoses SDK connection failures and AMQP link detach or detach-forced errors
  • Troubleshoots message lock lost, lock expired, lock renewal failures, and batch lock timeouts
  • Handles session lock lost, session lock expired, and session receiver errors
  • Identifies idle timeout, connection inactivity, and slow reconnection issues
  • Investigates duplicate events, checkpoint offset resets, and event processor stalls
  • Guides SDK configuration for retry, prefetch, batch size, and receive batch behavior

How to install azure-messaging

npx skills add https://github.com/microsoft/azure-skills --skill azure-messaging
Prerequisites
  • Azure Event Hubs or Service Bus namespace already provisioned
  • Access to the namespace connection string or Azure credentials
  • MCP tools available: mcp_azure_mcp_eventhubs, mcp_azure_mcp_servicebus, mcp_azure_mcp_monitor, mcp_azure_mcp_resourcehealth, mcp_azure_mcp_documentation
  • azure-diagnostics skill installed (contains messaging troubleshooting guides under troubleshooting/messaging/)
  • Knowledge of which SDK language and version is in use (Python, Java, JavaScript, .NET)
Claude Code
Cursor
Windsurf
Cline

How to use azure-messaging

  1. 1.Install the skill: npx skills add https://github.com/microsoft/azure-skills --skill azure-messaging
  2. 2.Describe the error or symptom to your coding agent (e.g., 'message lock expired during batch processing')
  3. 3.The agent identifies the SDK language and version from context or asks if unclear
  4. 4.The agent checks namespace health using mcp_azure_mcp_resourcehealth
  5. 5.The agent matches the error against language-specific guides in azure-diagnostics troubleshooting/messaging/
  6. 6.The agent searches Microsoft Learn via mcp_azure_mcp_documentation for the specific error or topic
  7. 7.The agent queries diagnostic logs with mcp_azure_mcp_monitor if deeper investigation is needed
  8. 8.Apply the recommended configuration change or code fix cited from documentation

Use cases

Good for
  • Event Hub consumer stops receiving messages and needs reconnection diagnosis
  • Service Bus message lock expires during batch processing causing dead-lettering
  • AMQP link detach errors appear intermittently in a .NET or Java SDK application
  • Authentication errors prevent a Python or JavaScript client from connecting to a namespace
  • Event processor host checkpoints reset unexpectedly causing duplicate event processing
Who it's for
  • Developers building Event Hubs consumer or producer applications
  • Developers integrating Azure Service Bus queues, topics, or subscriptions
  • Engineers debugging AMQP-level connectivity issues in Azure messaging clients
  • Teams using azure-sdk across Python, Java, JavaScript, or .NET for messaging
  • Anyone troubleshooting SDK configuration or message processing reliability

azure-messaging FAQ

Does this skill work for both Event Hubs and Service Bus?

Yes. It covers both services, including queues, topics, subscriptions, consumer groups, and event processors.

Which SDK languages are supported?

The skill references Python, Java, JavaScript, and .NET SDK scenarios explicitly.

Does this skill fix issues automatically or just diagnose them?

It diagnoses issues using MCP tools and recommends fixes with documentation references; it does not automatically change Azure resources.

Is the azure-diagnostics skill required?

Yes. The detailed language-specific troubleshooting guides are stored in azure-diagnostics under troubleshooting/messaging/, so that skill should also be installed.

Can it help with AMQP-level errors like link detach or idle timeout?

Yes. AMQP link detach, detach-forced, idle timeout, and connection inactivity are explicitly covered scenarios.

Full instructions (SKILL.md)

Source of truth, from microsoft/azure-skills.


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.1.2"

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.