Dev & Engineering ✓ Microsoft · Official azure-service-buspython-sdkmessage-queuespub-subenterprise-messagingazure-identity

Azure Service Bus for Python

Practical Python guidance for reliable Azure Service Bus queues and publish-subscribe messaging.

FollowSkills review · FSRS-2.0
Not recommended
45/ 100 5-point scale 2.3 / 5
Trust14 / 25 · 2.8/5

The skill prefers DefaultAzureCredential, discourages keys, and describes part of the authentication flow; however, dependency and permission scope are not detailed, the script permits connection strings, and queue/topic/subscription deletion is exposed without confirmation, rollback, or recovery guidance. DLQ examples also print message bodies, which may expose sensitive data. Trust is therefore deducted for least privilege, sensitive-data handling, external effects, and recovery controls.

Reliability6 / 20 · 1.5/5

The material covers sending, receiving, settlement, sessions, DLQ processing, and administration, but several examples have missing imports, inconsistent environment-variable requirements, and async credentials that are not consistently closed. The script also offers limited structured failure feedback. Repository CI and tests are generic and do not demonstrate this skill's key paths, so static calibration keeps reliability below 10.

Adaptability8 / 15 · 2.7/5

Triggers and the Python Service Bus scope are clear, with coverage of synchronous, asynchronous, queue, topic, subscription, and messaging patterns. However, non-fit boundaries, input/output contracts, compatibility guidance, and China-specific Azure environment or mainland-network guidance are absent. Core use depends on reachable Azure services, so points are deducted for boundary precision and environment fit.

Convention8 / 15 · 2.7/5

The document is layered across installation, authentication, lifecycle, operations, best practices, and reference files, and it declares MIT licensing, author, and version 1.0.0. It lacks a changelog, explicit maintenance owner or update path, pinned dependency guidance, FAQ, and systematic troubleshooting; examples also contain hidden assumptions. Convention is therefore materially but not severely reduced.

Effectiveness6 / 15 · 2.0/5

The material can directly support common Service Bus sending, receiving, settlement, session, DLQ, and administration tasks, providing clear practical value. Several snippets still require import fixes, API validation, or stronger error handling, and no skill-specific verified outputs or execution evidence are supplied. Static evidence supports a moderate score, not full effectiveness.

Verifiability3 / 10 · 1.5/5

The files contain auditable code, configuration examples, references, and repository-level CI/test signals. They do not contain skill-specific test coverage, real execution results, locked dependencies, or corroboration from multiple independent sources. Generic repository tests cannot verify this path's key examples, so verifiability remains limited.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Add explicit confirmation, least-privilege guidance, and recoverable backup procedures before using the script's delete commands; rollback is currently undocumented.
  • Avoid printing message bodies, full exceptions, or application properties in logs and DLQ analysis without redaction.
  • Before release, validate imports, SDK APIs, async credential lifecycles, and environment-variable requirements, and add skill-specific CI/tests.
  • For mainland-China users, document Azure public-cloud versus China-cloud differences, network reachability, and authentication constraints.
See the full review method →

What it does & when to use it

This skill helps Python developers build messaging workflows with the Azure Service Bus SDK. It covers queues, topics, subscriptions, sending and receiving, settlement, sessions, scheduled messages, and dead-letter queues. It includes both synchronous and asynchronous client examples and recommends DefaultAzureCredential with deterministic resource cleanup. It fits Azure applications that need reliable cloud messaging, but it does not provide a complete infrastructure or service-provisioning guide.

Shows how to install azure-servicebus and azure-identity and configure namespace, queue, topic, and subscription environment variables; produces synchronous or asynchronous Python examples using ServiceBusClient, senders, and receivers; demonstrates batch sending, PEEK_LOCK and RECEIVE_AND_DELETE, complete/abandon/dead-letter/defer settlement, topic subscriptions, FIFO sessions, scheduled messages, and dead-letter queue consumption; points to pattern, dead-letter, and setup_servicebus.py reference resources.

  1. A Python backend developer needs to send and receive business messages through an Azure Service Bus queue.
  2. An enterprise application needs publish-subscribe delivery through topics and subscriptions.
  3. A consumer workflow requires lock-based processing with completion, retry, abandonment, and dead-letter handling.
  4. An order-processing system needs FIFO behavior through Service Bus sessions.
  5. An Azure project needs batching, scheduled delivery, or dead-letter queue inspection.

Pros & cons

Pros
  • Covers queues, topics, subscriptions, sessions, batching, scheduling, and dead-letter queues.
  • Provides both synchronous and asynchronous Python examples with explicit lifecycle guidance.
  • Emphasizes DefaultAzureCredential, production credential constraints, and correct message settlement.
Limitations
  • Focuses on SDK usage rather than complete Azure resource provisioning, networking, or permission-granting procedures.
  • Examples assume an existing Service Bus namespace and entities; required environment values must be supplied separately.
  • The source provides no dedicated test-suite or test-coverage evidence for this skill.

How to install

Install the repository’s skill collection with npx skills add microsoft/skills, then select the required skill in the wizard. Skills are installed in the selected agent’s directory, such as .github/skills/ for GitHub Copilot. This skill is located at .github/plugins/azure-sdk-python/skills/azure-servicebus-py/. Install its Python packages with pip install azure-servicebus azure-identity.

How to use

Ask a coding agent something like: “Using the Python Azure Service Bus SDK, implement async sending and PEEK_LOCK receiving for an order queue with correct message settlement.” Configure SERVICEBUS_FULLY_QUALIFIED_NAMESPACE and the relevant queue, topic, or subscription variables. Prefer DefaultAzureCredential; use with for synchronous clients and async with for asynchronous clients and async credentials.

FAQ

Does this skill require Azure permissions?
Yes. The credential must be authorized to access the target Service Bus namespace and entities. The skill recommends DefaultAzureCredential but does not document specific RBAC assignment steps.
Should I use the synchronous or asynchronous client?
Keep one mode consistent within a call path. The skill presents synchronous clients for simple scripts and recommends asynchronous clients for production workloads.
What happens when message processing fails?
Abandon a message for later retry, or dead-letter a permanently failed message. Complete the message after successful processing.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills