Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub for Python

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

50/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 2.7k
Last updated
3mo ago
License
MIT
azure-web-pubsubwebsocketreal-time-messagingpub-sub
+2python-sdkazure-identity

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.

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

How do you install this skill?

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.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
Install first
  • Python
  • azure-messaging-webpubsubservice
  • azure-messaging-webpubsubclient
  • azure-identity

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.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/.github/plugins/azure-sdk-python/skills/azure-messaging-webpubsubservice-py" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

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.

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 does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Azure Web PubSub for Python this page ✓ Microsoft · Official 50 · Use with care ★ 2.7k 3mo ago MIT
Azure Web PubSub Real-Time Messaging ✓ Microsoft · Official 48 · Use with care ★ 2.7k 3mo ago MIT
Azure Service Bus for Python ✓ Microsoft · Official 45 · Not recommended ★ 2.7k 3mo ago MIT
Azure Web PubSub for Java ✓ Microsoft · Official 46 · Use with care ★ 2.7k 3mo ago MIT
Azure Identity for Python ✓ Microsoft · Official 60 · Recommended ★ 2.7k 3mo ago MIT

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
50/ 100 5-point scale 2.5 / 5
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.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a Review evidence[1][2][3][4][5][6][7][8][9][10][11][12]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

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.

★ 2.7k FS 48 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for Python

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

★ 2.7k FS 45 Not recommended 3mo ago
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.

★ 2.7k FS 46 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Identity for Python

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

★ 2.7k FS 60 Recommended 3mo ago
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.

★ 2.7k FS 55 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for Python

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

★ 2.7k FS 52 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Bot Service Python Manager

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

★ 2.7k FS 52 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for TypeScript

Build enterprise messaging workflows with Azure Service Bus.

★ 2.7k FS 50 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs for Python

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

★ 2.7k FS 49 Use with care 3mo ago
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.

★ 2.7k FS 47 Use with care 3mo ago
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.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Event Grid for Java

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

★ 2.7k FS 47 Use with care 3mo ago
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.

★ 2.7k FS 54 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for .NET

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

★ 2.7k FS 47 Use with care 3mo ago
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.

★ 2.7k FS 57 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

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

★ 2.7k FS 57 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

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

★ 2.7k FS 55 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

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

★ 2.7k FS 55 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

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

★ 2.7k FS 54 Use with care 3mo ago
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.

★ 2.7k FS 54 Use with care 3mo ago

Related skills