sickn33/agentic-awesome-skills/azure-servicebus-dotnet
Claude Code and agent skill by sickn33/agentic-awesome-skills
- community
Checking that the SKILL.md file is still in the repository.
Azure Service Bus SDK for .NET. Enterprise messaging with queues, topics, subscriptions, and sessions.
Install
npx vskill@latest install sickn33/agentic-awesome-skills/azure-servicebus-dotnetSKILL.md
The same SKILL.md was published earlier as sickn33/agentic-awesome-skills/azure-servicebus-dotnet.
Azure.Messaging.ServiceBus (.NET)
Enterprise messaging SDK for reliable message delivery with queues, topics, subscriptions, and sessions.
Installation
Example SDK baseline: v7.20.1; verify the installed package and compatible API before adapting snippets.
Environment Variables
Authentication
Microsoft Entra ID (Recommended)
Connection String
ASP.NET Core Dependency Injection
Client Hierarchy
Use separate snippets independently and import Azure.Messaging.ServiceBus.Administration for CRUD and System.Transactions for TransactionScope. Confirm namespace/entity and least-privilege sender/receiver/admin roles. Receive can return null; DLQ and transaction examples also need that guard. Completing removes a message: perform the durable business operation first, make it idempotent for redelivery and reconcile uncertain sends/settlements. Abandoning every exception can create poison-message loops. Do not log message bodies or raw exceptions containing sensitive payloads. Session-enabled queues require session receivers; the basic receive example is for a different non-session queue. Processors need async disposal and bounded lock-renewal/shutdown policies.
Core Workflows
1. Send Messages
2. Receive Messages
3. Message Settlement
4. Background Processing with Processor
5. Sessions (Ordered Processing)
6. Dead Letter Queue
7. Topics and Subscriptions
8. Administration (CRUD)
9. Cross-Entity Transactions
Key Types Reference
| Type | Purpose | |
|---|---|---|
ServiceBusClient | Main entry point, manages connection | |
ServiceBusSender | Sends messages to queues/topics | |
ServiceBusReceiver | Receives messages from queues/subscriptions | |
ServiceBusSessionReceiver | Receives session messages | |
ServiceBusProcessor | Background message processing | |
ServiceBusSessionProcessor | Background session processing | |
ServiceBusAdministrationClient | CRUD for queues/topics/subscriptions | |
ServiceBusMessage | Message to send | |
ServiceBusReceivedMessage | Received message with metadata | |
ServiceBusMessageBatch | Batch of messages |
Best Practices
- Use singletons — Clients, senders, receivers, and processors are thread-safe
- Always dispose — Use
await usingor callDisposeAsync() - Dispose order — Close senders/receivers/processors first, then client
- Use DefaultAzureCredential — Prefer over connection strings for production
- Use processors for background work — Handles lock renewal automatically
- Use safe batching —
CreateMessageBatchAsync()andTryAddMessage() - Handle transient errors — Use
ServiceBusException.Reason - Configure transport — Use
AmqpWebSocketsif ports 5671/5672 are blocked - Set appropriate lock duration — Default is 30 seconds
- Use sessions for ordering — FIFO within a session
Error Handling
Related SDKs
| SDK | Purpose | Install | |
|---|---|---|---|
Azure.Messaging.ServiceBus | Service Bus (this SDK) | dotnet add package Azure.Messaging.ServiceBus | |
Azure.Messaging.EventHubs | Event streaming | dotnet add package Azure.Messaging.EventHubs | |
Azure.Messaging.EventGrid | Event routing | dotnet add package Azure.Messaging.EventGrid |
Reference Links
| Resource | URL | |
|---|---|---|
| NuGet Package | https://www.nuget.org/packages/Azure.Messaging.ServiceBus | |
| API Reference | https://learn.microsoft.com/dotnet/api/azure.messaging.servicebus | |
| GitHub Source | https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/servicebus/Azure.Messaging.ServiceBus | |
| Troubleshooting | https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/TROUBLESHOOTING.md |
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/agentic-awesome-skills/skills/azure-servicebus-dotnet/SKILL.md
Popularity
- Repository stars
- 47,167
- Repository forks
- 6,871
- 7-day trend score
- 54
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/agentic-awesome-skills/azure-servicebus-dotnet)