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
Use with care
50/ 100 5-point scale 2.5 / 5
1 2 3 4 5 6
1Trust15 / 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.

2Reliability7 / 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.

3Adaptability9 / 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.

4Convention9 / 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.

5Effectiveness6 / 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.

6Verifiability4 / 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 does this skill do, and when should you 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.

What are this skill's strengths and limitations?

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 do you install this skill?

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 do you use this skill?

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 Web PubSub Real-Time Messaging

Build TypeScript WebSocket messaging, group communication, and live notification features with Azure Web PubSub.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for Python

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

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub for Java

A practical Java SDK guide for Azure Web PubSub messaging, groups, permissions, and real-time client access.

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 Queue Storage for Python

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

Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for Python

Guides Python developers in building real-time, bidirectional voice AI applications on Azure.

Dev & Engineering ✓ Microsoft · Official

Azure Bot Service Python Manager

Create, manage, and configure Azure Bot Service resources and channels from Python.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for TypeScript

Build enterprise messaging workflows with Azure Service Bus.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs for Python

A practical guide to high-throughput event ingestion, consumption, and checkpointing in Python.

Dev & Engineering ✓ Microsoft · Official

Microsoft Foundry Python Projects Skill

Gives coding agents dependable patterns for building Foundry AI applications with the Azure AI Projects Python SDK.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for Rust

Guides Rust developers in sending and receiving Azure Service Bus messages through queues, topics, and subscriptions.

Dev & Engineering ✓ Microsoft · Official

Azure Event Grid for Java

A practical Java SDK guide for publishing, consuming, and handling Azure Event Grid events.

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 Service Bus for .NET

Guides .NET teams in building reliable Azure enterprise messaging workflows.

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.

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

Related skills