[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-microsoft-azure-messaging-webpubsubservice-py":3,"mdc--ec1u25-key":45,"related-repo-microsoft-azure-messaging-webpubsubservice-py":1932,"related-org-microsoft-azure-messaging-webpubsubservice-py":2041},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":28,"repoUrl":29,"updatedAt":30,"license":31,"forks":32,"topics":33,"repo":40,"sourceUrl":43,"mdContent":44},"azure-messaging-webpubsubservice-py","build real-time messaging with Azure Web PubSub","Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub\u002Fsub patterns.\nTriggers: \"azure-messaging-webpubsubservice\", \"WebPubSubServiceClient\", \"real-time\", \"WebSocket\", \"pub\u002Fsub\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"microsoft","Microsoft","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmicrosoft.png",[12,16,19,22,25],{"name":13,"slug":14,"type":15},"Azure","azure","tag",{"name":17,"slug":18,"type":15},"WebSockets","websockets",{"name":20,"slug":21,"type":15},"Python","python",{"name":23,"slug":24,"type":15},"Messaging","messaging",{"name":26,"slug":27,"type":15},"Real-time","real-time",2804,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills","2026-07-18T05:14:23.988134","MIT",315,[34,35,14,36,37,38,39],"agent-skills","agents","foundry","mcp","sdk","skills",{"repoUrl":29,"stars":28,"forks":32,"topics":41,"description":42},[34,35,14,36,37,38,39],"Skills, MCP servers, Custom Agents, Agents.md for SDKs to ground Coding Agents","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Ftree\u002FHEAD\u002F.github\u002Fplugins\u002Fazure-sdk-python\u002Fskills\u002Fazure-messaging-webpubsubservice-py","---\nname: azure-messaging-webpubsubservice-py\ndescription: |\n  Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub\u002Fsub patterns.\n  Triggers: \"azure-messaging-webpubsubservice\", \"WebPubSubServiceClient\", \"real-time\", \"WebSocket\", \"pub\u002Fsub\".\nlicense: MIT\nmetadata:\n  author: Microsoft\n  version: \"1.0.0\"\n  package: azure-messaging-webpubsubservice\n---\n\n# Azure Web PubSub Service SDK for Python\n\nReal-time messaging with WebSocket connections at scale.\n\n## Installation\n\n```bash\n# Service SDK (server-side)\npip install azure-messaging-webpubsubservice\n\n# Client SDK (for Python WebSocket clients)\npip install azure-messaging-webpubsubclient\n```\n\n## Environment Variables\n\n```bash\nAZURE_WEBPUBSUB_HUB=my-hub  # Required for all auth methods\nAZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production\n```\n\n## Authentication & Lifecycle\n\n> **🔑 Two rules apply to every code sample below:**\n>\n> 1. **Prefer `DefaultAzureCredential`.** It works locally (Azure CLI \u002F VS Code \u002F Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account\u002FAPI keys — they bypass Entra audit and rotation.\n>    - Local dev: `DefaultAzureCredential` works as-is.\n>    - Production: set `AZURE_TOKEN_CREDENTIALS=prod` (or `AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>`) to constrain the credential chain to production-safe credentials.\n> 2. **Wrap every client in a context manager** so HTTP transports, sockets, and token caches are released deterministically:\n>    - Sync: `with \u003CClient>(...) as client:`\n>    - Async: `async with \u003CClient>(...) as client:` **and** `async with DefaultAzureCredential() as credential:` (from `azure.identity.aio`)\n>\n> Snippets may abbreviate this setup, but production code should always follow both rules.\n\n## Service Client (Server-Side)\n\n### Authentication\n\n```python\nfrom azure.messaging.webpubsubservice import WebPubSubServiceClient\nfrom azure.identity import DefaultAzureCredential, ManagedIdentityCredential\n\n# Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\ncredential = DefaultAzureCredential(require_envvar=True)\n# Or use a specific credential directly in production:\n# See https:\u002F\u002Flearn.microsoft.com\u002Fpython\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-python#credential-classes\n# credential = ManagedIdentityCredential()\n\nwith WebPubSubServiceClient(\n    endpoint=\"https:\u002F\u002F\u003Cname>.webpubsub.azure.com\",\n    hub=\"my-hub\",\n    credential=credential\n) as client:\n    # Use `client` for all subsequent operations (see examples below)\n    ...\n```\n\n### Generate Client Access Token\n\n```python\n# Token for anonymous user\ntoken = client.get_client_access_token()\nprint(f\"URL: {token['url']}\")\n\n# Token with user ID\ntoken = client.get_client_access_token(\n    user_id=\"user123\",\n    roles=[\"webpubsub.sendToGroup\", \"webpubsub.joinLeaveGroup\"]\n)\n\n# Token with groups\ntoken = client.get_client_access_token(\n    user_id=\"user123\",\n    groups=[\"group1\", \"group2\"]\n)\n```\n\n### Send to All Clients\n\n```python\n# Send text\nclient.send_to_all(message=\"Hello everyone!\", content_type=\"text\u002Fplain\")\n\n# Send JSON\nclient.send_to_all(\n    message={\"type\": \"notification\", \"data\": \"Hello\"},\n    content_type=\"application\u002Fjson\"\n)\n```\n\n### Send to User\n\n```python\nclient.send_to_user(\n    user_id=\"user123\",\n    message=\"Hello user!\",\n    content_type=\"text\u002Fplain\"\n)\n```\n\n### Send to Group\n\n```python\nclient.send_to_group(\n    group=\"my-group\",\n    message=\"Hello group!\",\n    content_type=\"text\u002Fplain\"\n)\n```\n\n### Send to Connection\n\n```python\nclient.send_to_connection(\n    connection_id=\"abc123\",\n    message=\"Hello connection!\",\n    content_type=\"text\u002Fplain\"\n)\n```\n\n### Group Management\n\n```python\n# Add user to group\nclient.add_user_to_group(group=\"my-group\", user_id=\"user123\")\n\n# Remove user from group\nclient.remove_user_from_group(group=\"my-group\", user_id=\"user123\")\n\n# Add connection to group\nclient.add_connection_to_group(group=\"my-group\", connection_id=\"abc123\")\n\n# Remove connection from group\nclient.remove_connection_from_group(group=\"my-group\", connection_id=\"abc123\")\n```\n\n### Connection Management\n\n```python\n# Check if connection exists\nexists = client.connection_exists(connection_id=\"abc123\")\n\n# Check if user has connections\nexists = client.user_exists(user_id=\"user123\")\n\n# Check if group has connections\nexists = client.group_exists(group=\"my-group\")\n\n# Close connection\nclient.close_connection(connection_id=\"abc123\", reason=\"Session ended\")\n\n# Close all connections for user\nclient.close_all_connections(user_id=\"user123\")\n```\n\n### Grant\u002FRevoke Permissions\n\n```python\nfrom azure.messaging.webpubsubservice import WebPubSubServiceClient\n\n# Grant permission\nclient.grant_permission(\n    permission=\"joinLeaveGroup\",\n    connection_id=\"abc123\",\n    target_name=\"my-group\"\n)\n\n# Revoke permission\nclient.revoke_permission(\n    permission=\"joinLeaveGroup\",\n    connection_id=\"abc123\",\n    target_name=\"my-group\"\n)\n\n# Check permission\nhas_permission = client.check_permission(\n    permission=\"joinLeaveGroup\",\n    connection_id=\"abc123\",\n    target_name=\"my-group\"\n)\n```\n\n## Client SDK (Python WebSocket Client)\n\n```python\nfrom azure.messaging.webpubsubclient import WebPubSubClient\n\nwith WebPubSubClient(credential=token[\"url\"]) as client:\n    @client.on(\"connected\")\n    def on_connected(e):\n        print(f\"Connected: {e.connection_id}\")\n\n    @client.on(\"server-message\")\n    def on_message(e):\n        print(f\"Message: {e.data}\")\n\n    @client.on(\"group-message\")\n    def on_group_message(e):\n        print(f\"Group {e.group}: {e.data}\")\n\n    client.send_to_group(\"my-group\", \"Hello from Python!\")\n```\n\n## Async Service Client\n\n```python\nfrom azure.messaging.webpubsubservice.aio import WebPubSubServiceClient\nfrom azure.identity.aio import DefaultAzureCredential\n\nasync def broadcast():\n    async with DefaultAzureCredential() as credential:\n        async with WebPubSubServiceClient(\n            endpoint=\"https:\u002F\u002F\u003Cname>.webpubsub.azure.com\",\n            hub=\"my-hub\",\n            credential=credential\n        ) as client:\n            await client.send_to_all(\"Hello async!\", content_type=\"text\u002Fplain\")\n```\n\n## Client Operations\n\n| Operation | Description |\n|-----------|-------------|\n| `get_client_access_token` | Generate WebSocket connection URL |\n| `send_to_all` | Broadcast to all connections |\n| `send_to_user` | Send to specific user |\n| `send_to_group` | Send to group members |\n| `send_to_connection` | Send to specific connection |\n| `add_user_to_group` | Add user to group |\n| `remove_user_from_group` | Remove user from group |\n| `close_connection` | Disconnect client |\n| `connection_exists` | Check connection status |\n\n## Best Practices\n\n1. **Pick sync OR async and stay consistent.** Do not mix `azure.xxx` sync clients with `azure.xxx.aio` async clients in the same call path. Choose one mode per module.\n2. **Always use context managers for clients and async credentials.** Wrap every client in `with Client(...) as client:` (sync) or `async with Client(...) as client:` (async). For async `DefaultAzureCredential` from `azure.identity.aio`, also use `async with credential:` so tokens and transports are cleaned up.\n3. **Use `DefaultAzureCredential`** for portable auth across local dev and Azure (avoid connection strings \u002F access keys when possible).\n4. **Use roles** to limit client permissions\n4. **Use groups** for targeted messaging\n5. **Generate short-lived tokens** for security\n6. **Use user IDs** to send to users across connections\n7. **Handle reconnection** in client applications\n8. **Use JSON** content type for structured data\n9. **Close connections** gracefully with reasons\n\n## Reference Files\n\n| File | Contents |\n|------|----------|\n| [references\u002Fcapabilities.md](references\u002Fcapabilities.md) | Additional non-hero capabilities, operation-group coverage, and production checklists. |\n| [references\u002Fnon-hero-scenarios.md](references\u002Fnon-hero-scenarios.md) | Dedicated non-hero examples for secondary\u002Fadvanced scenarios. |\n",{"data":46,"body":50},{"name":4,"description":6,"license":31,"metadata":47},{"author":9,"version":48,"package":49},"1.0.0","azure-messaging-webpubsubservice",{"type":51,"children":52},"root",[53,62,68,75,156,162,216,222,359,365,372,517,523,645,651,720,726,771,777,822,828,873,879,971,977,1092,1098,1273,1279,1410,1416,1510,1516,1697,1703,1865,1871,1926],{"type":54,"tag":55,"props":56,"children":58},"element","h1",{"id":57},"azure-web-pubsub-service-sdk-for-python",[59],{"type":60,"value":61},"text","Azure Web PubSub Service SDK for Python",{"type":54,"tag":63,"props":64,"children":65},"p",{},[66],{"type":60,"value":67},"Real-time messaging with WebSocket connections at scale.",{"type":54,"tag":69,"props":70,"children":72},"h2",{"id":71},"installation",[73],{"type":60,"value":74},"Installation",{"type":54,"tag":76,"props":77,"children":82},"pre",{"className":78,"code":79,"language":80,"meta":81,"style":81},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Service SDK (server-side)\npip install azure-messaging-webpubsubservice\n\n# Client SDK (for Python WebSocket clients)\npip install azure-messaging-webpubsubclient\n","bash","",[83],{"type":54,"tag":84,"props":85,"children":86},"code",{"__ignoreMap":81},[87,99,120,130,139],{"type":54,"tag":88,"props":89,"children":92},"span",{"class":90,"line":91},"line",1,[93],{"type":54,"tag":88,"props":94,"children":96},{"style":95},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[97],{"type":60,"value":98},"# Service SDK (server-side)\n",{"type":54,"tag":88,"props":100,"children":102},{"class":90,"line":101},2,[103,109,115],{"type":54,"tag":88,"props":104,"children":106},{"style":105},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[107],{"type":60,"value":108},"pip",{"type":54,"tag":88,"props":110,"children":112},{"style":111},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[113],{"type":60,"value":114}," install",{"type":54,"tag":88,"props":116,"children":117},{"style":111},[118],{"type":60,"value":119}," azure-messaging-webpubsubservice\n",{"type":54,"tag":88,"props":121,"children":123},{"class":90,"line":122},3,[124],{"type":54,"tag":88,"props":125,"children":127},{"emptyLinePlaceholder":126},true,[128],{"type":60,"value":129},"\n",{"type":54,"tag":88,"props":131,"children":133},{"class":90,"line":132},4,[134],{"type":54,"tag":88,"props":135,"children":136},{"style":95},[137],{"type":60,"value":138},"# Client SDK (for Python WebSocket clients)\n",{"type":54,"tag":88,"props":140,"children":142},{"class":90,"line":141},5,[143,147,151],{"type":54,"tag":88,"props":144,"children":145},{"style":105},[146],{"type":60,"value":108},{"type":54,"tag":88,"props":148,"children":149},{"style":111},[150],{"type":60,"value":114},{"type":54,"tag":88,"props":152,"children":153},{"style":111},[154],{"type":60,"value":155}," azure-messaging-webpubsubclient\n",{"type":54,"tag":69,"props":157,"children":159},{"id":158},"environment-variables",[160],{"type":60,"value":161},"Environment Variables",{"type":54,"tag":76,"props":163,"children":165},{"className":78,"code":164,"language":80,"meta":81,"style":81},"AZURE_WEBPUBSUB_HUB=my-hub  # Required for all auth methods\nAZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production\n",[166],{"type":54,"tag":84,"props":167,"children":168},{"__ignoreMap":81},[169,194],{"type":54,"tag":88,"props":170,"children":171},{"class":90,"line":91},[172,178,184,189],{"type":54,"tag":88,"props":173,"children":175},{"style":174},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[176],{"type":60,"value":177},"AZURE_WEBPUBSUB_HUB",{"type":54,"tag":88,"props":179,"children":181},{"style":180},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[182],{"type":60,"value":183},"=",{"type":54,"tag":88,"props":185,"children":186},{"style":111},[187],{"type":60,"value":188},"my-hub",{"type":54,"tag":88,"props":190,"children":191},{"style":95},[192],{"type":60,"value":193},"  # Required for all auth methods\n",{"type":54,"tag":88,"props":195,"children":196},{"class":90,"line":101},[197,202,206,211],{"type":54,"tag":88,"props":198,"children":199},{"style":174},[200],{"type":60,"value":201},"AZURE_TOKEN_CREDENTIALS",{"type":54,"tag":88,"props":203,"children":204},{"style":180},[205],{"type":60,"value":183},{"type":54,"tag":88,"props":207,"children":208},{"style":111},[209],{"type":60,"value":210},"prod",{"type":54,"tag":88,"props":212,"children":213},{"style":95},[214],{"type":60,"value":215}," # Required only if DefaultAzureCredential is used in production\n",{"type":54,"tag":69,"props":217,"children":219},{"id":218},"authentication-lifecycle",[220],{"type":60,"value":221},"Authentication & Lifecycle",{"type":54,"tag":223,"props":224,"children":225},"blockquote",{},[226,235,354],{"type":54,"tag":63,"props":227,"children":228},{},[229],{"type":54,"tag":230,"props":231,"children":232},"strong",{},[233],{"type":60,"value":234},"🔑 Two rules apply to every code sample below:",{"type":54,"tag":236,"props":237,"children":238},"ol",{},[239,295],{"type":54,"tag":240,"props":241,"children":242},"li",{},[243,256,258],{"type":54,"tag":230,"props":244,"children":245},{},[246,248,254],{"type":60,"value":247},"Prefer ",{"type":54,"tag":84,"props":249,"children":251},{"className":250},[],[252],{"type":60,"value":253},"DefaultAzureCredential",{"type":60,"value":255},".",{"type":60,"value":257}," It works locally (Azure CLI \u002F VS Code \u002F Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account\u002FAPI keys — they bypass Entra audit and rotation.\n",{"type":54,"tag":259,"props":260,"children":261},"ul",{},[262,274],{"type":54,"tag":240,"props":263,"children":264},{},[265,267,272],{"type":60,"value":266},"Local dev: ",{"type":54,"tag":84,"props":268,"children":270},{"className":269},[],[271],{"type":60,"value":253},{"type":60,"value":273}," works as-is.",{"type":54,"tag":240,"props":275,"children":276},{},[277,279,285,287,293],{"type":60,"value":278},"Production: set ",{"type":54,"tag":84,"props":280,"children":282},{"className":281},[],[283],{"type":60,"value":284},"AZURE_TOKEN_CREDENTIALS=prod",{"type":60,"value":286}," (or ",{"type":54,"tag":84,"props":288,"children":290},{"className":289},[],[291],{"type":60,"value":292},"AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>",{"type":60,"value":294},") to constrain the credential chain to production-safe credentials.",{"type":54,"tag":240,"props":296,"children":297},{},[298,303,305],{"type":54,"tag":230,"props":299,"children":300},{},[301],{"type":60,"value":302},"Wrap every client in a context manager",{"type":60,"value":304}," so HTTP transports, sockets, and token caches are released deterministically:\n",{"type":54,"tag":259,"props":306,"children":307},{},[308,319],{"type":54,"tag":240,"props":309,"children":310},{},[311,313],{"type":60,"value":312},"Sync: ",{"type":54,"tag":84,"props":314,"children":316},{"className":315},[],[317],{"type":60,"value":318},"with \u003CClient>(...) as client:",{"type":54,"tag":240,"props":320,"children":321},{},[322,324,330,332,337,338,344,346,352],{"type":60,"value":323},"Async: ",{"type":54,"tag":84,"props":325,"children":327},{"className":326},[],[328],{"type":60,"value":329},"async with \u003CClient>(...) as client:",{"type":60,"value":331}," ",{"type":54,"tag":230,"props":333,"children":334},{},[335],{"type":60,"value":336},"and",{"type":60,"value":331},{"type":54,"tag":84,"props":339,"children":341},{"className":340},[],[342],{"type":60,"value":343},"async with DefaultAzureCredential() as credential:",{"type":60,"value":345}," (from ",{"type":54,"tag":84,"props":347,"children":349},{"className":348},[],[350],{"type":60,"value":351},"azure.identity.aio",{"type":60,"value":353},")",{"type":54,"tag":63,"props":355,"children":356},{},[357],{"type":60,"value":358},"Snippets may abbreviate this setup, but production code should always follow both rules.",{"type":54,"tag":69,"props":360,"children":362},{"id":361},"service-client-server-side",[363],{"type":60,"value":364},"Service Client (Server-Side)",{"type":54,"tag":366,"props":367,"children":369},"h3",{"id":368},"authentication",[370],{"type":60,"value":371},"Authentication",{"type":54,"tag":76,"props":373,"children":376},{"className":374,"code":375,"language":21,"meta":81,"style":81},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from azure.messaging.webpubsubservice import WebPubSubServiceClient\nfrom azure.identity import DefaultAzureCredential, ManagedIdentityCredential\n\n# Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\ncredential = DefaultAzureCredential(require_envvar=True)\n# Or use a specific credential directly in production:\n# See https:\u002F\u002Flearn.microsoft.com\u002Fpython\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-python#credential-classes\n# credential = ManagedIdentityCredential()\n\nwith WebPubSubServiceClient(\n    endpoint=\"https:\u002F\u002F\u003Cname>.webpubsub.azure.com\",\n    hub=\"my-hub\",\n    credential=credential\n) as client:\n    # Use `client` for all subsequent operations (see examples below)\n    ...\n",[377],{"type":54,"tag":84,"props":378,"children":379},{"__ignoreMap":81},[380,388,396,403,411,419,428,437,446,454,463,472,481,490,499,508],{"type":54,"tag":88,"props":381,"children":382},{"class":90,"line":91},[383],{"type":54,"tag":88,"props":384,"children":385},{},[386],{"type":60,"value":387},"from azure.messaging.webpubsubservice import WebPubSubServiceClient\n",{"type":54,"tag":88,"props":389,"children":390},{"class":90,"line":101},[391],{"type":54,"tag":88,"props":392,"children":393},{},[394],{"type":60,"value":395},"from azure.identity import DefaultAzureCredential, ManagedIdentityCredential\n",{"type":54,"tag":88,"props":397,"children":398},{"class":90,"line":122},[399],{"type":54,"tag":88,"props":400,"children":401},{"emptyLinePlaceholder":126},[402],{"type":60,"value":129},{"type":54,"tag":88,"props":404,"children":405},{"class":90,"line":132},[406],{"type":54,"tag":88,"props":407,"children":408},{},[409],{"type":60,"value":410},"# Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\n",{"type":54,"tag":88,"props":412,"children":413},{"class":90,"line":141},[414],{"type":54,"tag":88,"props":415,"children":416},{},[417],{"type":60,"value":418},"credential = DefaultAzureCredential(require_envvar=True)\n",{"type":54,"tag":88,"props":420,"children":422},{"class":90,"line":421},6,[423],{"type":54,"tag":88,"props":424,"children":425},{},[426],{"type":60,"value":427},"# Or use a specific credential directly in production:\n",{"type":54,"tag":88,"props":429,"children":431},{"class":90,"line":430},7,[432],{"type":54,"tag":88,"props":433,"children":434},{},[435],{"type":60,"value":436},"# See https:\u002F\u002Flearn.microsoft.com\u002Fpython\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-python#credential-classes\n",{"type":54,"tag":88,"props":438,"children":440},{"class":90,"line":439},8,[441],{"type":54,"tag":88,"props":442,"children":443},{},[444],{"type":60,"value":445},"# credential = ManagedIdentityCredential()\n",{"type":54,"tag":88,"props":447,"children":449},{"class":90,"line":448},9,[450],{"type":54,"tag":88,"props":451,"children":452},{"emptyLinePlaceholder":126},[453],{"type":60,"value":129},{"type":54,"tag":88,"props":455,"children":457},{"class":90,"line":456},10,[458],{"type":54,"tag":88,"props":459,"children":460},{},[461],{"type":60,"value":462},"with WebPubSubServiceClient(\n",{"type":54,"tag":88,"props":464,"children":466},{"class":90,"line":465},11,[467],{"type":54,"tag":88,"props":468,"children":469},{},[470],{"type":60,"value":471},"    endpoint=\"https:\u002F\u002F\u003Cname>.webpubsub.azure.com\",\n",{"type":54,"tag":88,"props":473,"children":475},{"class":90,"line":474},12,[476],{"type":54,"tag":88,"props":477,"children":478},{},[479],{"type":60,"value":480},"    hub=\"my-hub\",\n",{"type":54,"tag":88,"props":482,"children":484},{"class":90,"line":483},13,[485],{"type":54,"tag":88,"props":486,"children":487},{},[488],{"type":60,"value":489},"    credential=credential\n",{"type":54,"tag":88,"props":491,"children":493},{"class":90,"line":492},14,[494],{"type":54,"tag":88,"props":495,"children":496},{},[497],{"type":60,"value":498},") as client:\n",{"type":54,"tag":88,"props":500,"children":502},{"class":90,"line":501},15,[503],{"type":54,"tag":88,"props":504,"children":505},{},[506],{"type":60,"value":507},"    # Use `client` for all subsequent operations (see examples below)\n",{"type":54,"tag":88,"props":509,"children":511},{"class":90,"line":510},16,[512],{"type":54,"tag":88,"props":513,"children":514},{},[515],{"type":60,"value":516},"    ...\n",{"type":54,"tag":366,"props":518,"children":520},{"id":519},"generate-client-access-token",[521],{"type":60,"value":522},"Generate Client Access Token",{"type":54,"tag":76,"props":524,"children":526},{"className":374,"code":525,"language":21,"meta":81,"style":81},"# Token for anonymous user\ntoken = client.get_client_access_token()\nprint(f\"URL: {token['url']}\")\n\n# Token with user ID\ntoken = client.get_client_access_token(\n    user_id=\"user123\",\n    roles=[\"webpubsub.sendToGroup\", \"webpubsub.joinLeaveGroup\"]\n)\n\n# Token with groups\ntoken = client.get_client_access_token(\n    user_id=\"user123\",\n    groups=[\"group1\", \"group2\"]\n)\n",[527],{"type":54,"tag":84,"props":528,"children":529},{"__ignoreMap":81},[530,538,546,554,561,569,577,585,593,601,608,616,623,630,638],{"type":54,"tag":88,"props":531,"children":532},{"class":90,"line":91},[533],{"type":54,"tag":88,"props":534,"children":535},{},[536],{"type":60,"value":537},"# Token for anonymous user\n",{"type":54,"tag":88,"props":539,"children":540},{"class":90,"line":101},[541],{"type":54,"tag":88,"props":542,"children":543},{},[544],{"type":60,"value":545},"token = client.get_client_access_token()\n",{"type":54,"tag":88,"props":547,"children":548},{"class":90,"line":122},[549],{"type":54,"tag":88,"props":550,"children":551},{},[552],{"type":60,"value":553},"print(f\"URL: {token['url']}\")\n",{"type":54,"tag":88,"props":555,"children":556},{"class":90,"line":132},[557],{"type":54,"tag":88,"props":558,"children":559},{"emptyLinePlaceholder":126},[560],{"type":60,"value":129},{"type":54,"tag":88,"props":562,"children":563},{"class":90,"line":141},[564],{"type":54,"tag":88,"props":565,"children":566},{},[567],{"type":60,"value":568},"# Token with user ID\n",{"type":54,"tag":88,"props":570,"children":571},{"class":90,"line":421},[572],{"type":54,"tag":88,"props":573,"children":574},{},[575],{"type":60,"value":576},"token = client.get_client_access_token(\n",{"type":54,"tag":88,"props":578,"children":579},{"class":90,"line":430},[580],{"type":54,"tag":88,"props":581,"children":582},{},[583],{"type":60,"value":584},"    user_id=\"user123\",\n",{"type":54,"tag":88,"props":586,"children":587},{"class":90,"line":439},[588],{"type":54,"tag":88,"props":589,"children":590},{},[591],{"type":60,"value":592},"    roles=[\"webpubsub.sendToGroup\", \"webpubsub.joinLeaveGroup\"]\n",{"type":54,"tag":88,"props":594,"children":595},{"class":90,"line":448},[596],{"type":54,"tag":88,"props":597,"children":598},{},[599],{"type":60,"value":600},")\n",{"type":54,"tag":88,"props":602,"children":603},{"class":90,"line":456},[604],{"type":54,"tag":88,"props":605,"children":606},{"emptyLinePlaceholder":126},[607],{"type":60,"value":129},{"type":54,"tag":88,"props":609,"children":610},{"class":90,"line":465},[611],{"type":54,"tag":88,"props":612,"children":613},{},[614],{"type":60,"value":615},"# Token with groups\n",{"type":54,"tag":88,"props":617,"children":618},{"class":90,"line":474},[619],{"type":54,"tag":88,"props":620,"children":621},{},[622],{"type":60,"value":576},{"type":54,"tag":88,"props":624,"children":625},{"class":90,"line":483},[626],{"type":54,"tag":88,"props":627,"children":628},{},[629],{"type":60,"value":584},{"type":54,"tag":88,"props":631,"children":632},{"class":90,"line":492},[633],{"type":54,"tag":88,"props":634,"children":635},{},[636],{"type":60,"value":637},"    groups=[\"group1\", \"group2\"]\n",{"type":54,"tag":88,"props":639,"children":640},{"class":90,"line":501},[641],{"type":54,"tag":88,"props":642,"children":643},{},[644],{"type":60,"value":600},{"type":54,"tag":366,"props":646,"children":648},{"id":647},"send-to-all-clients",[649],{"type":60,"value":650},"Send to All Clients",{"type":54,"tag":76,"props":652,"children":654},{"className":374,"code":653,"language":21,"meta":81,"style":81},"# Send text\nclient.send_to_all(message=\"Hello everyone!\", content_type=\"text\u002Fplain\")\n\n# Send JSON\nclient.send_to_all(\n    message={\"type\": \"notification\", \"data\": \"Hello\"},\n    content_type=\"application\u002Fjson\"\n)\n",[655],{"type":54,"tag":84,"props":656,"children":657},{"__ignoreMap":81},[658,666,674,681,689,697,705,713],{"type":54,"tag":88,"props":659,"children":660},{"class":90,"line":91},[661],{"type":54,"tag":88,"props":662,"children":663},{},[664],{"type":60,"value":665},"# Send text\n",{"type":54,"tag":88,"props":667,"children":668},{"class":90,"line":101},[669],{"type":54,"tag":88,"props":670,"children":671},{},[672],{"type":60,"value":673},"client.send_to_all(message=\"Hello everyone!\", content_type=\"text\u002Fplain\")\n",{"type":54,"tag":88,"props":675,"children":676},{"class":90,"line":122},[677],{"type":54,"tag":88,"props":678,"children":679},{"emptyLinePlaceholder":126},[680],{"type":60,"value":129},{"type":54,"tag":88,"props":682,"children":683},{"class":90,"line":132},[684],{"type":54,"tag":88,"props":685,"children":686},{},[687],{"type":60,"value":688},"# Send JSON\n",{"type":54,"tag":88,"props":690,"children":691},{"class":90,"line":141},[692],{"type":54,"tag":88,"props":693,"children":694},{},[695],{"type":60,"value":696},"client.send_to_all(\n",{"type":54,"tag":88,"props":698,"children":699},{"class":90,"line":421},[700],{"type":54,"tag":88,"props":701,"children":702},{},[703],{"type":60,"value":704},"    message={\"type\": \"notification\", \"data\": \"Hello\"},\n",{"type":54,"tag":88,"props":706,"children":707},{"class":90,"line":430},[708],{"type":54,"tag":88,"props":709,"children":710},{},[711],{"type":60,"value":712},"    content_type=\"application\u002Fjson\"\n",{"type":54,"tag":88,"props":714,"children":715},{"class":90,"line":439},[716],{"type":54,"tag":88,"props":717,"children":718},{},[719],{"type":60,"value":600},{"type":54,"tag":366,"props":721,"children":723},{"id":722},"send-to-user",[724],{"type":60,"value":725},"Send to User",{"type":54,"tag":76,"props":727,"children":729},{"className":374,"code":728,"language":21,"meta":81,"style":81},"client.send_to_user(\n    user_id=\"user123\",\n    message=\"Hello user!\",\n    content_type=\"text\u002Fplain\"\n)\n",[730],{"type":54,"tag":84,"props":731,"children":732},{"__ignoreMap":81},[733,741,748,756,764],{"type":54,"tag":88,"props":734,"children":735},{"class":90,"line":91},[736],{"type":54,"tag":88,"props":737,"children":738},{},[739],{"type":60,"value":740},"client.send_to_user(\n",{"type":54,"tag":88,"props":742,"children":743},{"class":90,"line":101},[744],{"type":54,"tag":88,"props":745,"children":746},{},[747],{"type":60,"value":584},{"type":54,"tag":88,"props":749,"children":750},{"class":90,"line":122},[751],{"type":54,"tag":88,"props":752,"children":753},{},[754],{"type":60,"value":755},"    message=\"Hello user!\",\n",{"type":54,"tag":88,"props":757,"children":758},{"class":90,"line":132},[759],{"type":54,"tag":88,"props":760,"children":761},{},[762],{"type":60,"value":763},"    content_type=\"text\u002Fplain\"\n",{"type":54,"tag":88,"props":765,"children":766},{"class":90,"line":141},[767],{"type":54,"tag":88,"props":768,"children":769},{},[770],{"type":60,"value":600},{"type":54,"tag":366,"props":772,"children":774},{"id":773},"send-to-group",[775],{"type":60,"value":776},"Send to Group",{"type":54,"tag":76,"props":778,"children":780},{"className":374,"code":779,"language":21,"meta":81,"style":81},"client.send_to_group(\n    group=\"my-group\",\n    message=\"Hello group!\",\n    content_type=\"text\u002Fplain\"\n)\n",[781],{"type":54,"tag":84,"props":782,"children":783},{"__ignoreMap":81},[784,792,800,808,815],{"type":54,"tag":88,"props":785,"children":786},{"class":90,"line":91},[787],{"type":54,"tag":88,"props":788,"children":789},{},[790],{"type":60,"value":791},"client.send_to_group(\n",{"type":54,"tag":88,"props":793,"children":794},{"class":90,"line":101},[795],{"type":54,"tag":88,"props":796,"children":797},{},[798],{"type":60,"value":799},"    group=\"my-group\",\n",{"type":54,"tag":88,"props":801,"children":802},{"class":90,"line":122},[803],{"type":54,"tag":88,"props":804,"children":805},{},[806],{"type":60,"value":807},"    message=\"Hello group!\",\n",{"type":54,"tag":88,"props":809,"children":810},{"class":90,"line":132},[811],{"type":54,"tag":88,"props":812,"children":813},{},[814],{"type":60,"value":763},{"type":54,"tag":88,"props":816,"children":817},{"class":90,"line":141},[818],{"type":54,"tag":88,"props":819,"children":820},{},[821],{"type":60,"value":600},{"type":54,"tag":366,"props":823,"children":825},{"id":824},"send-to-connection",[826],{"type":60,"value":827},"Send to Connection",{"type":54,"tag":76,"props":829,"children":831},{"className":374,"code":830,"language":21,"meta":81,"style":81},"client.send_to_connection(\n    connection_id=\"abc123\",\n    message=\"Hello connection!\",\n    content_type=\"text\u002Fplain\"\n)\n",[832],{"type":54,"tag":84,"props":833,"children":834},{"__ignoreMap":81},[835,843,851,859,866],{"type":54,"tag":88,"props":836,"children":837},{"class":90,"line":91},[838],{"type":54,"tag":88,"props":839,"children":840},{},[841],{"type":60,"value":842},"client.send_to_connection(\n",{"type":54,"tag":88,"props":844,"children":845},{"class":90,"line":101},[846],{"type":54,"tag":88,"props":847,"children":848},{},[849],{"type":60,"value":850},"    connection_id=\"abc123\",\n",{"type":54,"tag":88,"props":852,"children":853},{"class":90,"line":122},[854],{"type":54,"tag":88,"props":855,"children":856},{},[857],{"type":60,"value":858},"    message=\"Hello connection!\",\n",{"type":54,"tag":88,"props":860,"children":861},{"class":90,"line":132},[862],{"type":54,"tag":88,"props":863,"children":864},{},[865],{"type":60,"value":763},{"type":54,"tag":88,"props":867,"children":868},{"class":90,"line":141},[869],{"type":54,"tag":88,"props":870,"children":871},{},[872],{"type":60,"value":600},{"type":54,"tag":366,"props":874,"children":876},{"id":875},"group-management",[877],{"type":60,"value":878},"Group Management",{"type":54,"tag":76,"props":880,"children":882},{"className":374,"code":881,"language":21,"meta":81,"style":81},"# Add user to group\nclient.add_user_to_group(group=\"my-group\", user_id=\"user123\")\n\n# Remove user from group\nclient.remove_user_from_group(group=\"my-group\", user_id=\"user123\")\n\n# Add connection to group\nclient.add_connection_to_group(group=\"my-group\", connection_id=\"abc123\")\n\n# Remove connection from group\nclient.remove_connection_from_group(group=\"my-group\", connection_id=\"abc123\")\n",[883],{"type":54,"tag":84,"props":884,"children":885},{"__ignoreMap":81},[886,894,902,909,917,925,932,940,948,955,963],{"type":54,"tag":88,"props":887,"children":888},{"class":90,"line":91},[889],{"type":54,"tag":88,"props":890,"children":891},{},[892],{"type":60,"value":893},"# Add user to group\n",{"type":54,"tag":88,"props":895,"children":896},{"class":90,"line":101},[897],{"type":54,"tag":88,"props":898,"children":899},{},[900],{"type":60,"value":901},"client.add_user_to_group(group=\"my-group\", user_id=\"user123\")\n",{"type":54,"tag":88,"props":903,"children":904},{"class":90,"line":122},[905],{"type":54,"tag":88,"props":906,"children":907},{"emptyLinePlaceholder":126},[908],{"type":60,"value":129},{"type":54,"tag":88,"props":910,"children":911},{"class":90,"line":132},[912],{"type":54,"tag":88,"props":913,"children":914},{},[915],{"type":60,"value":916},"# Remove user from group\n",{"type":54,"tag":88,"props":918,"children":919},{"class":90,"line":141},[920],{"type":54,"tag":88,"props":921,"children":922},{},[923],{"type":60,"value":924},"client.remove_user_from_group(group=\"my-group\", user_id=\"user123\")\n",{"type":54,"tag":88,"props":926,"children":927},{"class":90,"line":421},[928],{"type":54,"tag":88,"props":929,"children":930},{"emptyLinePlaceholder":126},[931],{"type":60,"value":129},{"type":54,"tag":88,"props":933,"children":934},{"class":90,"line":430},[935],{"type":54,"tag":88,"props":936,"children":937},{},[938],{"type":60,"value":939},"# Add connection to group\n",{"type":54,"tag":88,"props":941,"children":942},{"class":90,"line":439},[943],{"type":54,"tag":88,"props":944,"children":945},{},[946],{"type":60,"value":947},"client.add_connection_to_group(group=\"my-group\", connection_id=\"abc123\")\n",{"type":54,"tag":88,"props":949,"children":950},{"class":90,"line":448},[951],{"type":54,"tag":88,"props":952,"children":953},{"emptyLinePlaceholder":126},[954],{"type":60,"value":129},{"type":54,"tag":88,"props":956,"children":957},{"class":90,"line":456},[958],{"type":54,"tag":88,"props":959,"children":960},{},[961],{"type":60,"value":962},"# Remove connection from group\n",{"type":54,"tag":88,"props":964,"children":965},{"class":90,"line":465},[966],{"type":54,"tag":88,"props":967,"children":968},{},[969],{"type":60,"value":970},"client.remove_connection_from_group(group=\"my-group\", connection_id=\"abc123\")\n",{"type":54,"tag":366,"props":972,"children":974},{"id":973},"connection-management",[975],{"type":60,"value":976},"Connection Management",{"type":54,"tag":76,"props":978,"children":980},{"className":374,"code":979,"language":21,"meta":81,"style":81},"# Check if connection exists\nexists = client.connection_exists(connection_id=\"abc123\")\n\n# Check if user has connections\nexists = client.user_exists(user_id=\"user123\")\n\n# Check if group has connections\nexists = client.group_exists(group=\"my-group\")\n\n# Close connection\nclient.close_connection(connection_id=\"abc123\", reason=\"Session ended\")\n\n# Close all connections for user\nclient.close_all_connections(user_id=\"user123\")\n",[981],{"type":54,"tag":84,"props":982,"children":983},{"__ignoreMap":81},[984,992,1000,1007,1015,1023,1030,1038,1046,1053,1061,1069,1076,1084],{"type":54,"tag":88,"props":985,"children":986},{"class":90,"line":91},[987],{"type":54,"tag":88,"props":988,"children":989},{},[990],{"type":60,"value":991},"# Check if connection exists\n",{"type":54,"tag":88,"props":993,"children":994},{"class":90,"line":101},[995],{"type":54,"tag":88,"props":996,"children":997},{},[998],{"type":60,"value":999},"exists = client.connection_exists(connection_id=\"abc123\")\n",{"type":54,"tag":88,"props":1001,"children":1002},{"class":90,"line":122},[1003],{"type":54,"tag":88,"props":1004,"children":1005},{"emptyLinePlaceholder":126},[1006],{"type":60,"value":129},{"type":54,"tag":88,"props":1008,"children":1009},{"class":90,"line":132},[1010],{"type":54,"tag":88,"props":1011,"children":1012},{},[1013],{"type":60,"value":1014},"# Check if user has connections\n",{"type":54,"tag":88,"props":1016,"children":1017},{"class":90,"line":141},[1018],{"type":54,"tag":88,"props":1019,"children":1020},{},[1021],{"type":60,"value":1022},"exists = client.user_exists(user_id=\"user123\")\n",{"type":54,"tag":88,"props":1024,"children":1025},{"class":90,"line":421},[1026],{"type":54,"tag":88,"props":1027,"children":1028},{"emptyLinePlaceholder":126},[1029],{"type":60,"value":129},{"type":54,"tag":88,"props":1031,"children":1032},{"class":90,"line":430},[1033],{"type":54,"tag":88,"props":1034,"children":1035},{},[1036],{"type":60,"value":1037},"# Check if group has connections\n",{"type":54,"tag":88,"props":1039,"children":1040},{"class":90,"line":439},[1041],{"type":54,"tag":88,"props":1042,"children":1043},{},[1044],{"type":60,"value":1045},"exists = client.group_exists(group=\"my-group\")\n",{"type":54,"tag":88,"props":1047,"children":1048},{"class":90,"line":448},[1049],{"type":54,"tag":88,"props":1050,"children":1051},{"emptyLinePlaceholder":126},[1052],{"type":60,"value":129},{"type":54,"tag":88,"props":1054,"children":1055},{"class":90,"line":456},[1056],{"type":54,"tag":88,"props":1057,"children":1058},{},[1059],{"type":60,"value":1060},"# Close connection\n",{"type":54,"tag":88,"props":1062,"children":1063},{"class":90,"line":465},[1064],{"type":54,"tag":88,"props":1065,"children":1066},{},[1067],{"type":60,"value":1068},"client.close_connection(connection_id=\"abc123\", reason=\"Session ended\")\n",{"type":54,"tag":88,"props":1070,"children":1071},{"class":90,"line":474},[1072],{"type":54,"tag":88,"props":1073,"children":1074},{"emptyLinePlaceholder":126},[1075],{"type":60,"value":129},{"type":54,"tag":88,"props":1077,"children":1078},{"class":90,"line":483},[1079],{"type":54,"tag":88,"props":1080,"children":1081},{},[1082],{"type":60,"value":1083},"# Close all connections for user\n",{"type":54,"tag":88,"props":1085,"children":1086},{"class":90,"line":492},[1087],{"type":54,"tag":88,"props":1088,"children":1089},{},[1090],{"type":60,"value":1091},"client.close_all_connections(user_id=\"user123\")\n",{"type":54,"tag":366,"props":1093,"children":1095},{"id":1094},"grantrevoke-permissions",[1096],{"type":60,"value":1097},"Grant\u002FRevoke Permissions",{"type":54,"tag":76,"props":1099,"children":1101},{"className":374,"code":1100,"language":21,"meta":81,"style":81},"from azure.messaging.webpubsubservice import WebPubSubServiceClient\n\n# Grant permission\nclient.grant_permission(\n    permission=\"joinLeaveGroup\",\n    connection_id=\"abc123\",\n    target_name=\"my-group\"\n)\n\n# Revoke permission\nclient.revoke_permission(\n    permission=\"joinLeaveGroup\",\n    connection_id=\"abc123\",\n    target_name=\"my-group\"\n)\n\n# Check permission\nhas_permission = client.check_permission(\n    permission=\"joinLeaveGroup\",\n    connection_id=\"abc123\",\n    target_name=\"my-group\"\n)\n",[1102],{"type":54,"tag":84,"props":1103,"children":1104},{"__ignoreMap":81},[1105,1112,1119,1127,1135,1143,1150,1158,1165,1172,1180,1188,1195,1202,1209,1216,1223,1232,1241,1249,1257,1265],{"type":54,"tag":88,"props":1106,"children":1107},{"class":90,"line":91},[1108],{"type":54,"tag":88,"props":1109,"children":1110},{},[1111],{"type":60,"value":387},{"type":54,"tag":88,"props":1113,"children":1114},{"class":90,"line":101},[1115],{"type":54,"tag":88,"props":1116,"children":1117},{"emptyLinePlaceholder":126},[1118],{"type":60,"value":129},{"type":54,"tag":88,"props":1120,"children":1121},{"class":90,"line":122},[1122],{"type":54,"tag":88,"props":1123,"children":1124},{},[1125],{"type":60,"value":1126},"# Grant permission\n",{"type":54,"tag":88,"props":1128,"children":1129},{"class":90,"line":132},[1130],{"type":54,"tag":88,"props":1131,"children":1132},{},[1133],{"type":60,"value":1134},"client.grant_permission(\n",{"type":54,"tag":88,"props":1136,"children":1137},{"class":90,"line":141},[1138],{"type":54,"tag":88,"props":1139,"children":1140},{},[1141],{"type":60,"value":1142},"    permission=\"joinLeaveGroup\",\n",{"type":54,"tag":88,"props":1144,"children":1145},{"class":90,"line":421},[1146],{"type":54,"tag":88,"props":1147,"children":1148},{},[1149],{"type":60,"value":850},{"type":54,"tag":88,"props":1151,"children":1152},{"class":90,"line":430},[1153],{"type":54,"tag":88,"props":1154,"children":1155},{},[1156],{"type":60,"value":1157},"    target_name=\"my-group\"\n",{"type":54,"tag":88,"props":1159,"children":1160},{"class":90,"line":439},[1161],{"type":54,"tag":88,"props":1162,"children":1163},{},[1164],{"type":60,"value":600},{"type":54,"tag":88,"props":1166,"children":1167},{"class":90,"line":448},[1168],{"type":54,"tag":88,"props":1169,"children":1170},{"emptyLinePlaceholder":126},[1171],{"type":60,"value":129},{"type":54,"tag":88,"props":1173,"children":1174},{"class":90,"line":456},[1175],{"type":54,"tag":88,"props":1176,"children":1177},{},[1178],{"type":60,"value":1179},"# Revoke permission\n",{"type":54,"tag":88,"props":1181,"children":1182},{"class":90,"line":465},[1183],{"type":54,"tag":88,"props":1184,"children":1185},{},[1186],{"type":60,"value":1187},"client.revoke_permission(\n",{"type":54,"tag":88,"props":1189,"children":1190},{"class":90,"line":474},[1191],{"type":54,"tag":88,"props":1192,"children":1193},{},[1194],{"type":60,"value":1142},{"type":54,"tag":88,"props":1196,"children":1197},{"class":90,"line":483},[1198],{"type":54,"tag":88,"props":1199,"children":1200},{},[1201],{"type":60,"value":850},{"type":54,"tag":88,"props":1203,"children":1204},{"class":90,"line":492},[1205],{"type":54,"tag":88,"props":1206,"children":1207},{},[1208],{"type":60,"value":1157},{"type":54,"tag":88,"props":1210,"children":1211},{"class":90,"line":501},[1212],{"type":54,"tag":88,"props":1213,"children":1214},{},[1215],{"type":60,"value":600},{"type":54,"tag":88,"props":1217,"children":1218},{"class":90,"line":510},[1219],{"type":54,"tag":88,"props":1220,"children":1221},{"emptyLinePlaceholder":126},[1222],{"type":60,"value":129},{"type":54,"tag":88,"props":1224,"children":1226},{"class":90,"line":1225},17,[1227],{"type":54,"tag":88,"props":1228,"children":1229},{},[1230],{"type":60,"value":1231},"# Check permission\n",{"type":54,"tag":88,"props":1233,"children":1235},{"class":90,"line":1234},18,[1236],{"type":54,"tag":88,"props":1237,"children":1238},{},[1239],{"type":60,"value":1240},"has_permission = client.check_permission(\n",{"type":54,"tag":88,"props":1242,"children":1244},{"class":90,"line":1243},19,[1245],{"type":54,"tag":88,"props":1246,"children":1247},{},[1248],{"type":60,"value":1142},{"type":54,"tag":88,"props":1250,"children":1252},{"class":90,"line":1251},20,[1253],{"type":54,"tag":88,"props":1254,"children":1255},{},[1256],{"type":60,"value":850},{"type":54,"tag":88,"props":1258,"children":1260},{"class":90,"line":1259},21,[1261],{"type":54,"tag":88,"props":1262,"children":1263},{},[1264],{"type":60,"value":1157},{"type":54,"tag":88,"props":1266,"children":1268},{"class":90,"line":1267},22,[1269],{"type":54,"tag":88,"props":1270,"children":1271},{},[1272],{"type":60,"value":600},{"type":54,"tag":69,"props":1274,"children":1276},{"id":1275},"client-sdk-python-websocket-client",[1277],{"type":60,"value":1278},"Client SDK (Python WebSocket Client)",{"type":54,"tag":76,"props":1280,"children":1282},{"className":374,"code":1281,"language":21,"meta":81,"style":81},"from azure.messaging.webpubsubclient import WebPubSubClient\n\nwith WebPubSubClient(credential=token[\"url\"]) as client:\n    @client.on(\"connected\")\n    def on_connected(e):\n        print(f\"Connected: {e.connection_id}\")\n\n    @client.on(\"server-message\")\n    def on_message(e):\n        print(f\"Message: {e.data}\")\n\n    @client.on(\"group-message\")\n    def on_group_message(e):\n        print(f\"Group {e.group}: {e.data}\")\n\n    client.send_to_group(\"my-group\", \"Hello from Python!\")\n",[1283],{"type":54,"tag":84,"props":1284,"children":1285},{"__ignoreMap":81},[1286,1294,1301,1309,1317,1325,1333,1340,1348,1356,1364,1371,1379,1387,1395,1402],{"type":54,"tag":88,"props":1287,"children":1288},{"class":90,"line":91},[1289],{"type":54,"tag":88,"props":1290,"children":1291},{},[1292],{"type":60,"value":1293},"from azure.messaging.webpubsubclient import WebPubSubClient\n",{"type":54,"tag":88,"props":1295,"children":1296},{"class":90,"line":101},[1297],{"type":54,"tag":88,"props":1298,"children":1299},{"emptyLinePlaceholder":126},[1300],{"type":60,"value":129},{"type":54,"tag":88,"props":1302,"children":1303},{"class":90,"line":122},[1304],{"type":54,"tag":88,"props":1305,"children":1306},{},[1307],{"type":60,"value":1308},"with WebPubSubClient(credential=token[\"url\"]) as client:\n",{"type":54,"tag":88,"props":1310,"children":1311},{"class":90,"line":132},[1312],{"type":54,"tag":88,"props":1313,"children":1314},{},[1315],{"type":60,"value":1316},"    @client.on(\"connected\")\n",{"type":54,"tag":88,"props":1318,"children":1319},{"class":90,"line":141},[1320],{"type":54,"tag":88,"props":1321,"children":1322},{},[1323],{"type":60,"value":1324},"    def on_connected(e):\n",{"type":54,"tag":88,"props":1326,"children":1327},{"class":90,"line":421},[1328],{"type":54,"tag":88,"props":1329,"children":1330},{},[1331],{"type":60,"value":1332},"        print(f\"Connected: {e.connection_id}\")\n",{"type":54,"tag":88,"props":1334,"children":1335},{"class":90,"line":430},[1336],{"type":54,"tag":88,"props":1337,"children":1338},{"emptyLinePlaceholder":126},[1339],{"type":60,"value":129},{"type":54,"tag":88,"props":1341,"children":1342},{"class":90,"line":439},[1343],{"type":54,"tag":88,"props":1344,"children":1345},{},[1346],{"type":60,"value":1347},"    @client.on(\"server-message\")\n",{"type":54,"tag":88,"props":1349,"children":1350},{"class":90,"line":448},[1351],{"type":54,"tag":88,"props":1352,"children":1353},{},[1354],{"type":60,"value":1355},"    def on_message(e):\n",{"type":54,"tag":88,"props":1357,"children":1358},{"class":90,"line":456},[1359],{"type":54,"tag":88,"props":1360,"children":1361},{},[1362],{"type":60,"value":1363},"        print(f\"Message: {e.data}\")\n",{"type":54,"tag":88,"props":1365,"children":1366},{"class":90,"line":465},[1367],{"type":54,"tag":88,"props":1368,"children":1369},{"emptyLinePlaceholder":126},[1370],{"type":60,"value":129},{"type":54,"tag":88,"props":1372,"children":1373},{"class":90,"line":474},[1374],{"type":54,"tag":88,"props":1375,"children":1376},{},[1377],{"type":60,"value":1378},"    @client.on(\"group-message\")\n",{"type":54,"tag":88,"props":1380,"children":1381},{"class":90,"line":483},[1382],{"type":54,"tag":88,"props":1383,"children":1384},{},[1385],{"type":60,"value":1386},"    def on_group_message(e):\n",{"type":54,"tag":88,"props":1388,"children":1389},{"class":90,"line":492},[1390],{"type":54,"tag":88,"props":1391,"children":1392},{},[1393],{"type":60,"value":1394},"        print(f\"Group {e.group}: {e.data}\")\n",{"type":54,"tag":88,"props":1396,"children":1397},{"class":90,"line":501},[1398],{"type":54,"tag":88,"props":1399,"children":1400},{"emptyLinePlaceholder":126},[1401],{"type":60,"value":129},{"type":54,"tag":88,"props":1403,"children":1404},{"class":90,"line":510},[1405],{"type":54,"tag":88,"props":1406,"children":1407},{},[1408],{"type":60,"value":1409},"    client.send_to_group(\"my-group\", \"Hello from Python!\")\n",{"type":54,"tag":69,"props":1411,"children":1413},{"id":1412},"async-service-client",[1414],{"type":60,"value":1415},"Async Service Client",{"type":54,"tag":76,"props":1417,"children":1419},{"className":374,"code":1418,"language":21,"meta":81,"style":81},"from azure.messaging.webpubsubservice.aio import WebPubSubServiceClient\nfrom azure.identity.aio import DefaultAzureCredential\n\nasync def broadcast():\n    async with DefaultAzureCredential() as credential:\n        async with WebPubSubServiceClient(\n            endpoint=\"https:\u002F\u002F\u003Cname>.webpubsub.azure.com\",\n            hub=\"my-hub\",\n            credential=credential\n        ) as client:\n            await client.send_to_all(\"Hello async!\", content_type=\"text\u002Fplain\")\n",[1420],{"type":54,"tag":84,"props":1421,"children":1422},{"__ignoreMap":81},[1423,1431,1439,1446,1454,1462,1470,1478,1486,1494,1502],{"type":54,"tag":88,"props":1424,"children":1425},{"class":90,"line":91},[1426],{"type":54,"tag":88,"props":1427,"children":1428},{},[1429],{"type":60,"value":1430},"from azure.messaging.webpubsubservice.aio import WebPubSubServiceClient\n",{"type":54,"tag":88,"props":1432,"children":1433},{"class":90,"line":101},[1434],{"type":54,"tag":88,"props":1435,"children":1436},{},[1437],{"type":60,"value":1438},"from azure.identity.aio import DefaultAzureCredential\n",{"type":54,"tag":88,"props":1440,"children":1441},{"class":90,"line":122},[1442],{"type":54,"tag":88,"props":1443,"children":1444},{"emptyLinePlaceholder":126},[1445],{"type":60,"value":129},{"type":54,"tag":88,"props":1447,"children":1448},{"class":90,"line":132},[1449],{"type":54,"tag":88,"props":1450,"children":1451},{},[1452],{"type":60,"value":1453},"async def broadcast():\n",{"type":54,"tag":88,"props":1455,"children":1456},{"class":90,"line":141},[1457],{"type":54,"tag":88,"props":1458,"children":1459},{},[1460],{"type":60,"value":1461},"    async with DefaultAzureCredential() as credential:\n",{"type":54,"tag":88,"props":1463,"children":1464},{"class":90,"line":421},[1465],{"type":54,"tag":88,"props":1466,"children":1467},{},[1468],{"type":60,"value":1469},"        async with WebPubSubServiceClient(\n",{"type":54,"tag":88,"props":1471,"children":1472},{"class":90,"line":430},[1473],{"type":54,"tag":88,"props":1474,"children":1475},{},[1476],{"type":60,"value":1477},"            endpoint=\"https:\u002F\u002F\u003Cname>.webpubsub.azure.com\",\n",{"type":54,"tag":88,"props":1479,"children":1480},{"class":90,"line":439},[1481],{"type":54,"tag":88,"props":1482,"children":1483},{},[1484],{"type":60,"value":1485},"            hub=\"my-hub\",\n",{"type":54,"tag":88,"props":1487,"children":1488},{"class":90,"line":448},[1489],{"type":54,"tag":88,"props":1490,"children":1491},{},[1492],{"type":60,"value":1493},"            credential=credential\n",{"type":54,"tag":88,"props":1495,"children":1496},{"class":90,"line":456},[1497],{"type":54,"tag":88,"props":1498,"children":1499},{},[1500],{"type":60,"value":1501},"        ) as client:\n",{"type":54,"tag":88,"props":1503,"children":1504},{"class":90,"line":465},[1505],{"type":54,"tag":88,"props":1506,"children":1507},{},[1508],{"type":60,"value":1509},"            await client.send_to_all(\"Hello async!\", content_type=\"text\u002Fplain\")\n",{"type":54,"tag":69,"props":1511,"children":1513},{"id":1512},"client-operations",[1514],{"type":60,"value":1515},"Client Operations",{"type":54,"tag":1517,"props":1518,"children":1519},"table",{},[1520,1539],{"type":54,"tag":1521,"props":1522,"children":1523},"thead",{},[1524],{"type":54,"tag":1525,"props":1526,"children":1527},"tr",{},[1528,1534],{"type":54,"tag":1529,"props":1530,"children":1531},"th",{},[1532],{"type":60,"value":1533},"Operation",{"type":54,"tag":1529,"props":1535,"children":1536},{},[1537],{"type":60,"value":1538},"Description",{"type":54,"tag":1540,"props":1541,"children":1542},"tbody",{},[1543,1561,1578,1595,1612,1629,1646,1663,1680],{"type":54,"tag":1525,"props":1544,"children":1545},{},[1546,1556],{"type":54,"tag":1547,"props":1548,"children":1549},"td",{},[1550],{"type":54,"tag":84,"props":1551,"children":1553},{"className":1552},[],[1554],{"type":60,"value":1555},"get_client_access_token",{"type":54,"tag":1547,"props":1557,"children":1558},{},[1559],{"type":60,"value":1560},"Generate WebSocket connection URL",{"type":54,"tag":1525,"props":1562,"children":1563},{},[1564,1573],{"type":54,"tag":1547,"props":1565,"children":1566},{},[1567],{"type":54,"tag":84,"props":1568,"children":1570},{"className":1569},[],[1571],{"type":60,"value":1572},"send_to_all",{"type":54,"tag":1547,"props":1574,"children":1575},{},[1576],{"type":60,"value":1577},"Broadcast to all connections",{"type":54,"tag":1525,"props":1579,"children":1580},{},[1581,1590],{"type":54,"tag":1547,"props":1582,"children":1583},{},[1584],{"type":54,"tag":84,"props":1585,"children":1587},{"className":1586},[],[1588],{"type":60,"value":1589},"send_to_user",{"type":54,"tag":1547,"props":1591,"children":1592},{},[1593],{"type":60,"value":1594},"Send to specific user",{"type":54,"tag":1525,"props":1596,"children":1597},{},[1598,1607],{"type":54,"tag":1547,"props":1599,"children":1600},{},[1601],{"type":54,"tag":84,"props":1602,"children":1604},{"className":1603},[],[1605],{"type":60,"value":1606},"send_to_group",{"type":54,"tag":1547,"props":1608,"children":1609},{},[1610],{"type":60,"value":1611},"Send to group members",{"type":54,"tag":1525,"props":1613,"children":1614},{},[1615,1624],{"type":54,"tag":1547,"props":1616,"children":1617},{},[1618],{"type":54,"tag":84,"props":1619,"children":1621},{"className":1620},[],[1622],{"type":60,"value":1623},"send_to_connection",{"type":54,"tag":1547,"props":1625,"children":1626},{},[1627],{"type":60,"value":1628},"Send to specific connection",{"type":54,"tag":1525,"props":1630,"children":1631},{},[1632,1641],{"type":54,"tag":1547,"props":1633,"children":1634},{},[1635],{"type":54,"tag":84,"props":1636,"children":1638},{"className":1637},[],[1639],{"type":60,"value":1640},"add_user_to_group",{"type":54,"tag":1547,"props":1642,"children":1643},{},[1644],{"type":60,"value":1645},"Add user to group",{"type":54,"tag":1525,"props":1647,"children":1648},{},[1649,1658],{"type":54,"tag":1547,"props":1650,"children":1651},{},[1652],{"type":54,"tag":84,"props":1653,"children":1655},{"className":1654},[],[1656],{"type":60,"value":1657},"remove_user_from_group",{"type":54,"tag":1547,"props":1659,"children":1660},{},[1661],{"type":60,"value":1662},"Remove user from group",{"type":54,"tag":1525,"props":1664,"children":1665},{},[1666,1675],{"type":54,"tag":1547,"props":1667,"children":1668},{},[1669],{"type":54,"tag":84,"props":1670,"children":1672},{"className":1671},[],[1673],{"type":60,"value":1674},"close_connection",{"type":54,"tag":1547,"props":1676,"children":1677},{},[1678],{"type":60,"value":1679},"Disconnect client",{"type":54,"tag":1525,"props":1681,"children":1682},{},[1683,1692],{"type":54,"tag":1547,"props":1684,"children":1685},{},[1686],{"type":54,"tag":84,"props":1687,"children":1689},{"className":1688},[],[1690],{"type":60,"value":1691},"connection_exists",{"type":54,"tag":1547,"props":1693,"children":1694},{},[1695],{"type":60,"value":1696},"Check connection status",{"type":54,"tag":69,"props":1698,"children":1700},{"id":1699},"best-practices",[1701],{"type":60,"value":1702},"Best Practices",{"type":54,"tag":236,"props":1704,"children":1705},{},[1706,1732,1780,1795,1805,1815,1825,1835,1845,1855],{"type":54,"tag":240,"props":1707,"children":1708},{},[1709,1714,1716,1722,1724,1730],{"type":54,"tag":230,"props":1710,"children":1711},{},[1712],{"type":60,"value":1713},"Pick sync OR async and stay consistent.",{"type":60,"value":1715}," Do not mix ",{"type":54,"tag":84,"props":1717,"children":1719},{"className":1718},[],[1720],{"type":60,"value":1721},"azure.xxx",{"type":60,"value":1723}," sync clients with ",{"type":54,"tag":84,"props":1725,"children":1727},{"className":1726},[],[1728],{"type":60,"value":1729},"azure.xxx.aio",{"type":60,"value":1731}," async clients in the same call path. Choose one mode per module.",{"type":54,"tag":240,"props":1733,"children":1734},{},[1735,1740,1742,1748,1750,1756,1758,1763,1765,1770,1772,1778],{"type":54,"tag":230,"props":1736,"children":1737},{},[1738],{"type":60,"value":1739},"Always use context managers for clients and async credentials.",{"type":60,"value":1741}," Wrap every client in ",{"type":54,"tag":84,"props":1743,"children":1745},{"className":1744},[],[1746],{"type":60,"value":1747},"with Client(...) as client:",{"type":60,"value":1749}," (sync) or ",{"type":54,"tag":84,"props":1751,"children":1753},{"className":1752},[],[1754],{"type":60,"value":1755},"async with Client(...) as client:",{"type":60,"value":1757}," (async). For async ",{"type":54,"tag":84,"props":1759,"children":1761},{"className":1760},[],[1762],{"type":60,"value":253},{"type":60,"value":1764}," from ",{"type":54,"tag":84,"props":1766,"children":1768},{"className":1767},[],[1769],{"type":60,"value":351},{"type":60,"value":1771},", also use ",{"type":54,"tag":84,"props":1773,"children":1775},{"className":1774},[],[1776],{"type":60,"value":1777},"async with credential:",{"type":60,"value":1779}," so tokens and transports are cleaned up.",{"type":54,"tag":240,"props":1781,"children":1782},{},[1783,1793],{"type":54,"tag":230,"props":1784,"children":1785},{},[1786,1788],{"type":60,"value":1787},"Use ",{"type":54,"tag":84,"props":1789,"children":1791},{"className":1790},[],[1792],{"type":60,"value":253},{"type":60,"value":1794}," for portable auth across local dev and Azure (avoid connection strings \u002F access keys when possible).",{"type":54,"tag":240,"props":1796,"children":1797},{},[1798,1803],{"type":54,"tag":230,"props":1799,"children":1800},{},[1801],{"type":60,"value":1802},"Use roles",{"type":60,"value":1804}," to limit client permissions",{"type":54,"tag":240,"props":1806,"children":1807},{},[1808,1813],{"type":54,"tag":230,"props":1809,"children":1810},{},[1811],{"type":60,"value":1812},"Use groups",{"type":60,"value":1814}," for targeted messaging",{"type":54,"tag":240,"props":1816,"children":1817},{},[1818,1823],{"type":54,"tag":230,"props":1819,"children":1820},{},[1821],{"type":60,"value":1822},"Generate short-lived tokens",{"type":60,"value":1824}," for security",{"type":54,"tag":240,"props":1826,"children":1827},{},[1828,1833],{"type":54,"tag":230,"props":1829,"children":1830},{},[1831],{"type":60,"value":1832},"Use user IDs",{"type":60,"value":1834}," to send to users across connections",{"type":54,"tag":240,"props":1836,"children":1837},{},[1838,1843],{"type":54,"tag":230,"props":1839,"children":1840},{},[1841],{"type":60,"value":1842},"Handle reconnection",{"type":60,"value":1844}," in client applications",{"type":54,"tag":240,"props":1846,"children":1847},{},[1848,1853],{"type":54,"tag":230,"props":1849,"children":1850},{},[1851],{"type":60,"value":1852},"Use JSON",{"type":60,"value":1854}," content type for structured data",{"type":54,"tag":240,"props":1856,"children":1857},{},[1858,1863],{"type":54,"tag":230,"props":1859,"children":1860},{},[1861],{"type":60,"value":1862},"Close connections",{"type":60,"value":1864}," gracefully with reasons",{"type":54,"tag":69,"props":1866,"children":1868},{"id":1867},"reference-files",[1869],{"type":60,"value":1870},"Reference Files",{"type":54,"tag":1517,"props":1872,"children":1873},{},[1874,1890],{"type":54,"tag":1521,"props":1875,"children":1876},{},[1877],{"type":54,"tag":1525,"props":1878,"children":1879},{},[1880,1885],{"type":54,"tag":1529,"props":1881,"children":1882},{},[1883],{"type":60,"value":1884},"File",{"type":54,"tag":1529,"props":1886,"children":1887},{},[1888],{"type":60,"value":1889},"Contents",{"type":54,"tag":1540,"props":1891,"children":1892},{},[1893,1910],{"type":54,"tag":1525,"props":1894,"children":1895},{},[1896,1905],{"type":54,"tag":1547,"props":1897,"children":1898},{},[1899],{"type":54,"tag":1900,"props":1901,"children":1903},"a",{"href":1902},"references\u002Fcapabilities.md",[1904],{"type":60,"value":1902},{"type":54,"tag":1547,"props":1906,"children":1907},{},[1908],{"type":60,"value":1909},"Additional non-hero capabilities, operation-group coverage, and production checklists.",{"type":54,"tag":1525,"props":1911,"children":1912},{},[1913,1921],{"type":54,"tag":1547,"props":1914,"children":1915},{},[1916],{"type":54,"tag":1900,"props":1917,"children":1919},{"href":1918},"references\u002Fnon-hero-scenarios.md",[1920],{"type":60,"value":1918},{"type":54,"tag":1547,"props":1922,"children":1923},{},[1924],{"type":60,"value":1925},"Dedicated non-hero examples for secondary\u002Fadvanced scenarios.",{"type":54,"tag":1927,"props":1928,"children":1929},"style",{},[1930],{"type":60,"value":1931},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1933,"total":2040},[1934,1950,1971,1986,2001,2012,2025],{"slug":1935,"name":1935,"fn":1936,"description":1937,"org":1938,"tags":1939,"stars":28,"repoUrl":29,"updatedAt":1949},"azure-ai-agents-persistent-dotnet","build AI agents with Azure .NET SDK","Azure AI Agents Persistent SDK for .NET. Low-level SDK for creating and managing AI agents with threads, messages, runs, and tools. Use for agent CRUD, conversation threads, streaming responses, function calling, file search, and code interpreter. Triggers: \"PersistentAgentsClient\", \"persistent agents\", \"agent threads\", \"agent runs\", \"streaming agents\", \"function calling agents .NET\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1940,1943,1945,1946],{"name":1941,"slug":1942,"type":15},".NET","net",{"name":1944,"slug":35,"type":15},"Agents",{"name":13,"slug":14,"type":15},{"name":1947,"slug":1948,"type":15},"LLM","llm","2026-07-03T16:32:10.297433",{"slug":1951,"name":1951,"fn":1952,"description":1953,"org":1954,"tags":1955,"stars":28,"repoUrl":29,"updatedAt":1970},"azure-ai-anomalydetector-java","build anomaly detection applications with Java","Build anomaly detection applications with Azure AI Anomaly Detector SDK for Java. Use when implementing univariate\u002Fmultivariate anomaly detection, time-series analysis, or AI-powered monitoring.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1956,1959,1960,1963,1966,1967],{"name":1957,"slug":1958,"type":15},"Analytics","analytics",{"name":13,"slug":14,"type":15},{"name":1961,"slug":1962,"type":15},"Data Analysis","data-analysis",{"name":1964,"slug":1965,"type":15},"Java","java",{"name":9,"slug":8,"type":15},{"name":1968,"slug":1969,"type":15},"Monitoring","monitoring","2026-05-13T06:14:16.261754",{"slug":1972,"name":1972,"fn":1973,"description":1974,"org":1975,"tags":1976,"stars":28,"repoUrl":29,"updatedAt":1985},"azure-ai-contentsafety-java","build content moderation applications with Azure AI","Build content moderation applications with Azure AI Content Safety SDK for Java. Use when implementing text\u002Fimage analysis, blocklist management, or harm detection for hate, violence, sexual content, and self-harm.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1977,1980,1981,1982],{"name":1978,"slug":1979,"type":15},"AI Infrastructure","ai-infrastructure",{"name":13,"slug":14,"type":15},{"name":1964,"slug":1965,"type":15},{"name":1983,"slug":1984,"type":15},"Security","security","2026-07-07T06:53:31.293235",{"slug":1987,"name":1987,"fn":1988,"description":1989,"org":1990,"tags":1991,"stars":28,"repoUrl":29,"updatedAt":2000},"azure-ai-contentsafety-py","detect harmful content with Azure AI Content Safety","Azure AI Content Safety SDK for Python. Use for detecting harmful content in text and images with multi-severity classification.\nTriggers: \"azure-ai-contentsafety\", \"ContentSafetyClient\", \"content moderation\", \"harmful content\", \"text analysis\", \"image analysis\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1992,1993,1996,1997,1998,1999],{"name":13,"slug":14,"type":15},{"name":1994,"slug":1995,"type":15},"Compliance","compliance",{"name":1947,"slug":1948,"type":15},{"name":9,"slug":8,"type":15},{"name":20,"slug":21,"type":15},{"name":1983,"slug":1984,"type":15},"2026-07-18T05:14:23.017504",{"slug":2002,"name":2002,"fn":2003,"description":2004,"org":2005,"tags":2006,"stars":28,"repoUrl":29,"updatedAt":2011},"azure-ai-language-conversations-py","implement conversational language understanding with Python","Implement Conversational Language Understanding (CLU) using the azure-ai-language-conversations Python SDK. Use when working with ConversationAnalysisClient to analyze conversation intent and entities, building NLP features, or integrating language understanding into applications.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2007,2008,2009,2010],{"name":1957,"slug":1958,"type":15},{"name":13,"slug":14,"type":15},{"name":1947,"slug":1948,"type":15},{"name":20,"slug":21,"type":15},"2026-07-31T05:54:29.068751",{"slug":2013,"name":2013,"fn":2014,"description":2015,"org":2016,"tags":2017,"stars":28,"repoUrl":29,"updatedAt":2024},"azure-ai-translation-text-py","translate text using Azure AI services","Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications.\nTriggers: \"text translation\", \"translator\", \"translate text\", \"transliterate\", \"TextTranslationClient\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2018,2021,2022,2023],{"name":2019,"slug":2020,"type":15},"API Development","api-development",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"name":20,"slug":21,"type":15},"2026-07-18T05:14:16.988376",{"slug":2026,"name":2026,"fn":2027,"description":2028,"org":2029,"tags":2030,"stars":28,"repoUrl":29,"updatedAt":2039},"azure-ai-vision-imageanalysis-py","analyze images with Azure AI Vision","Azure AI Vision Image Analysis SDK for captions, tags, objects, OCR, people detection, and smart cropping. Use for computer vision and image understanding tasks.\nTriggers: \"image analysis\", \"computer vision\", \"OCR\", \"object detection\", \"ImageAnalysisClient\", \"image caption\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2031,2032,2035,2038],{"name":13,"slug":14,"type":15},{"name":2033,"slug":2034,"type":15},"Computer Vision","computer-vision",{"name":2036,"slug":2037,"type":15},"Images","images",{"name":20,"slug":21,"type":15},"2026-07-18T05:14:18.007737",38,{"items":2042,"total":2177},[2043,2065,2072,2081,2088,2097,2104,2111,2118,2133,2152,2165],{"slug":2044,"name":2044,"fn":2045,"description":2046,"org":2047,"tags":2048,"stars":2062,"repoUrl":2063,"updatedAt":2064},"rushstack-best-practices","manage Rush monorepos with best practices","Provides best practices and guidance for working with Rush monorepos. Use when the user is working in a Rush-based repository, asks about Rush commands (install, update, build, rebuild), needs help with project selection, dependency management, build caching, subspace configuration, or troubleshooting Rush-specific issues.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2049,2052,2055,2056,2059],{"name":2050,"slug":2051,"type":15},"Engineering","engineering",{"name":2053,"slug":2054,"type":15},"Local Development","local-development",{"name":9,"slug":8,"type":15},{"name":2057,"slug":2058,"type":15},"Project Management","project-management",{"name":2060,"slug":2061,"type":15},"Rush","rush",6484,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Frushstack","2026-04-06T18:34:44.965032",{"slug":1935,"name":1935,"fn":1936,"description":1937,"org":2066,"tags":2067,"stars":28,"repoUrl":29,"updatedAt":1949},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2068,2069,2070,2071],{"name":1941,"slug":1942,"type":15},{"name":1944,"slug":35,"type":15},{"name":13,"slug":14,"type":15},{"name":1947,"slug":1948,"type":15},{"slug":1951,"name":1951,"fn":1952,"description":1953,"org":2073,"tags":2074,"stars":28,"repoUrl":29,"updatedAt":1970},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2075,2076,2077,2078,2079,2080],{"name":1957,"slug":1958,"type":15},{"name":13,"slug":14,"type":15},{"name":1961,"slug":1962,"type":15},{"name":1964,"slug":1965,"type":15},{"name":9,"slug":8,"type":15},{"name":1968,"slug":1969,"type":15},{"slug":1972,"name":1972,"fn":1973,"description":1974,"org":2082,"tags":2083,"stars":28,"repoUrl":29,"updatedAt":1985},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2084,2085,2086,2087],{"name":1978,"slug":1979,"type":15},{"name":13,"slug":14,"type":15},{"name":1964,"slug":1965,"type":15},{"name":1983,"slug":1984,"type":15},{"slug":1987,"name":1987,"fn":1988,"description":1989,"org":2089,"tags":2090,"stars":28,"repoUrl":29,"updatedAt":2000},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2091,2092,2093,2094,2095,2096],{"name":13,"slug":14,"type":15},{"name":1994,"slug":1995,"type":15},{"name":1947,"slug":1948,"type":15},{"name":9,"slug":8,"type":15},{"name":20,"slug":21,"type":15},{"name":1983,"slug":1984,"type":15},{"slug":2002,"name":2002,"fn":2003,"description":2004,"org":2098,"tags":2099,"stars":28,"repoUrl":29,"updatedAt":2011},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2100,2101,2102,2103],{"name":1957,"slug":1958,"type":15},{"name":13,"slug":14,"type":15},{"name":1947,"slug":1948,"type":15},{"name":20,"slug":21,"type":15},{"slug":2013,"name":2013,"fn":2014,"description":2015,"org":2105,"tags":2106,"stars":28,"repoUrl":29,"updatedAt":2024},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2107,2108,2109,2110],{"name":2019,"slug":2020,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"name":20,"slug":21,"type":15},{"slug":2026,"name":2026,"fn":2027,"description":2028,"org":2112,"tags":2113,"stars":28,"repoUrl":29,"updatedAt":2039},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2114,2115,2116,2117],{"name":13,"slug":14,"type":15},{"name":2033,"slug":2034,"type":15},{"name":2036,"slug":2037,"type":15},{"name":20,"slug":21,"type":15},{"slug":2119,"name":2119,"fn":2120,"description":2121,"org":2122,"tags":2123,"stars":28,"repoUrl":29,"updatedAt":2132},"azure-appconfiguration-java","manage configuration with Azure App Configuration","Azure App Configuration SDK for Java. Centralized application configuration management with key-value settings, feature flags, and snapshots.\nTriggers: \"ConfigurationClient java\", \"app configuration java\", \"feature flag java\", \"configuration setting java\", \"azure config java\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2124,2125,2128,2131],{"name":13,"slug":14,"type":15},{"name":2126,"slug":2127,"type":15},"Configuration","configuration",{"name":2129,"slug":2130,"type":15},"Feature Flags","feature-flags",{"name":1964,"slug":1965,"type":15},"2026-07-03T16:32:01.278468",{"slug":2134,"name":2134,"fn":2135,"description":2136,"org":2137,"tags":2138,"stars":28,"repoUrl":29,"updatedAt":2151},"azure-cosmos-rust","build applications with Azure Cosmos DB","Azure Cosmos DB library for Rust (NoSQL API). Document CRUD, containers, and globally distributed data.\nTriggers: \"cosmos db rust\", \"CosmosClient rust\", \"document crud rust\", \"NoSQL rust\", \"partition key rust\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2139,2142,2145,2148],{"name":2140,"slug":2141,"type":15},"Cosmos DB","cosmos-db",{"name":2143,"slug":2144,"type":15},"Database","database",{"name":2146,"slug":2147,"type":15},"NoSQL","nosql",{"name":2149,"slug":2150,"type":15},"Rust","rust","2026-07-31T05:54:27.021432",{"slug":2153,"name":2153,"fn":2135,"description":2154,"org":2155,"tags":2156,"stars":28,"repoUrl":29,"updatedAt":2164},"azure-cosmos-ts","Azure Cosmos DB JavaScript\u002FTypeScript SDK (@azure\u002Fcosmos) for data plane operations. Use for CRUD operations on documents, queries, bulk operations, and container management. Triggers: \"Cosmos DB\", \"@azure\u002Fcosmos\", \"CosmosClient\", \"document CRUD\", \"NoSQL queries\", \"bulk operations\", \"partition key\", \"container.items\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2157,2158,2159,2160,2161],{"name":2140,"slug":2141,"type":15},{"name":2143,"slug":2144,"type":15},{"name":9,"slug":8,"type":15},{"name":2146,"slug":2147,"type":15},{"name":2162,"slug":2163,"type":15},"TypeScript","typescript","2026-07-03T16:31:19.368382",{"slug":2166,"name":2166,"fn":2167,"description":2168,"org":2169,"tags":2170,"stars":28,"repoUrl":29,"updatedAt":2176},"azure-data-tables-java","build table storage applications with Java","Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at scale.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2171,2172,2173,2174,2175],{"name":13,"slug":14,"type":15},{"name":2140,"slug":2141,"type":15},{"name":2143,"slug":2144,"type":15},{"name":1964,"slug":1965,"type":15},{"name":2146,"slug":2147,"type":15},"2026-05-13T06:14:17.582229",267]