Dev & Engineering ✓ Microsoft · Official azure-web-pubsubwebsocketreal-time-messagingpub-subpython-sdkazure-identity

Azure Web PubSub for Python

Build Azure WebSocket messaging and publish-subscribe workflows for Python applications.

FollowSkills review · FSRS-2.0
Not recommended
50/ 100 5-point scale 2.5 / 5
Trust15 / 25 · 3.0/5

The documentation recommends DefaultAzureCredential, scoped roles, and short-lived tokens, and warns against logging bearer-token URLs, supporting least-privilege and sensitive-data awareness; however, anonymous-token examples, direct URL printing, message/connection-closing operations, and permission changes lack user confirmation, impact disclosure, or rollback guidance, so 10 points are deducted.

Reliability7 / 20 · 1.8/5

Sync and async lifecycles, retry configuration, and basic connection checks are documented, making the happy path understandable; however, there are no skill-specific tests or reproducible results, some operation/API names require external confirmation, and abnormal inputs, authorization failures, reconnection, and diagnostic feedback are thin, so 13 points are deducted.

Adaptability9 / 15 · 3.0/5

Triggers, Python server/client roles, and sync/async scenarios are reasonably clear, with a main operation list; non-fit boundaries, input/output contracts, compatibility ranges, and mainland-China network reachability are not addressed, and the server/client scope may cause semantic ambiguity, so 6 points are deducted.

Convention9 / 15 · 3.0/5

The skill uses layered installation, authentication, lifecycle, operations, and reference documentation, and includes MIT licensing, author, version 1.0.0, and a reference index; it lacks a changelog, explicit maintenance owner/update path, FAQ, pinned dependency versions, troubleshooting, and complete limitation disclosure, so 6 points are deducted.

Effectiveness6 / 15 · 2.0/5

It covers token generation, broadcast, user/group/connection operations, permissions, client usage, and async flows, providing directly useful coding patterns; nevertheless, static evidence cannot establish executability, several advanced examples have API/parameter consistency risks, and production error handling and safety require substantial supplementation, so 9 points are deducted.

Verifiability4 / 10 · 2.0/5

Concrete code, an operation table, and repository-level CI/test materials provide limited auditability; there is no skill-specific committed test suite, third-party execution evidence, or revision-pinned API corroboration, so key paths cannot be independently reproduced from static evidence and 6 points are deducted.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Client access-token URLs contain bearer credentials; do not print, log, or pass them through untrusted channels.
  • Sending messages, closing connections, granting/revoking permissions, and issuing client tokens have external effects; add explicit confirmation, authorization boundaries, and recovery procedures before adoption.
  • Verify advanced method names and parameters against the current SDK documentation; the reference uses WEBPUBSUB_ENDPOINT while the main document only declares AZURE_WEBPUBSUB_HUB, leaving the configuration contract incomplete.
  • There is no evidence about mainland-China reachability, service-region availability, or offline alternatives.
See the full review method →

What it does & when to use it

This skill guides developers through the Azure Web PubSub Service SDK for Python. It covers server-side broadcasting, targeted delivery, group and connection management, permissions, and client access tokens. It also includes the Python WebSocket client and asynchronous service-client patterns. The guidance favors DefaultAzureCredential and deterministic context-managed cleanup for clients and credentials.

Shows how to install the service and optional client packages; configure the Web PubSub hub and credential environment variables; create synchronous or asynchronous WebPubSubServiceClient instances; generate client access tokens; send text or JSON messages to all clients, users, groups, or individual connections; manage group membership and connections; check connection, user, group, and permission status; grant or revoke permissions; close connections; and use WebPubSubClient event handlers for connected, server-message, and group-message events.

  1. A Python backend developer broadcasting live notifications to connected clients.
  2. An application team delivering messages selectively to users, groups, or individual connections.
  3. A developer implementing group chat, live status updates, or publish-subscribe behavior on Azure.
  4. A team that needs consistent synchronous or asynchronous Python patterns for WebSocket connection management.

Pros & cons

Pros
  • Covers server, client, and asynchronous client patterns.
  • Provides concrete examples for broadcasting, targeted delivery, group management, connection management, and permissions.
  • Recommends DefaultAzureCredential and explains production credential-chain constraints.
  • Includes practical guidance on short-lived tokens, roles, user IDs, reconnection, JSON content, and graceful closure.
Limitations
  • Requires the Azure Web PubSub service and network connectivity; no local mock is documented.
  • The source does not provide skill-specific test coverage or acceptance evidence.
  • Resource provisioning, deployment, and full service configuration are outside the documented scope.
  • No specific SDK version requirements are stated.

How to install

Run npx skills add microsoft/skills and select this skill in the installation wizard. Alternatively, run git clone https://github.com/microsoft/skills.git, then copy .github/plugins/azure-sdk-python/skills/azure-messaging-webpubsubservice-py into an agent skill directory such as your-project/.github/skills/. Install the runtime packages with pip install azure-messaging-webpubsubservice and, when using the Python WebSocket client, pip install azure-messaging-webpubsubclient.

How to use

In an Agent Skills-compatible coding agent, use a prompt such as: Use azure-messaging-webpubsubservice to implement group broadcasting for my Python service with DefaultAzureCredential and context managers. The documented trigger terms include azure-messaging-webpubsubservice, WebPubSubServiceClient, real-time, WebSocket, and pub/sub.

FAQ

Is this suitable for a project that only needs ordinary queues?
Not necessarily. The skill is centered on WebSocket connections, real-time messaging, and publish-subscribe patterns; the source does not position it for queue-only workloads.
Must I use DefaultAzureCredential?
The skill explicitly recommends it as the preferred approach and recommends constraining the production credential chain with AZURE_TOKEN_CREDENTIALS. It also shows ManagedIdentityCredential as a direct production option.
Can synchronous and asynchronous clients be mixed?
The guidance says to choose one mode per call path and remain consistent. An asynchronous DefaultAzureCredential should also be used within an asynchronous context manager.
Does installation include Azure Web PubSub resource deployment?
No. The source documents SDK installation, environment variables, and client operations, but not resource creation or deployment.

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