azure-signalr-service

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Azure SignalR Service Skill

Azure SignalR Service 技能指南

This skill provides expert guidance for Azure SignalR Service. Covers troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. It combines local quick-reference content with remote documentation fetching capabilities.
本技能为Azure SignalR Service提供专业指导,涵盖故障排查、最佳实践、决策制定、架构与设计模式、限制与配额、安全防护、配置、集成与编码模式,以及部署相关内容。它结合了本地快速参考内容与远程文档获取能力。

How to Use This Skill

如何使用本技能

IMPORTANT for Agent: Use the Category Index below to locate relevant sections. For categories with line ranges (e.g.,
L35-L120
), use
read_file
with the specified lines. For categories with file links (e.g.,
[security.md](security.md)
), use
read_file
on the linked reference file
IMPORTANT for Agent: If
metadata.generated_at
is more than 3 months old, suggest the user pull the latest version from the repository. If
mcp_microsoftdocs
tools are not available, suggest the user install it: Installation Guide
This skill requires network access to fetch documentation content:
  • Preferred: Use
    mcp_microsoftdocs:microsoft_docs_fetch
    with query string
    from=learn-agent-skill
    . Returns Markdown.
  • Fallback: Use
    fetch_webpage
    with query string
    from=learn-agent-skill&accept=text/markdown
    . Returns Markdown.
Agent 重要提示:请使用下方的分类索引定位相关章节。对于带有行号范围的分类(例如
L35-L120
),请使用
read_file
工具读取指定行内容。对于带有文件链接的分类(例如
[security.md](security.md)
),请使用
read_file
工具读取链接的参考文件。
Agent 重要提示:如果
metadata.generated_at
的时间超过3个月,请建议用户从仓库拉取最新版本。如果
mcp_microsoftdocs
工具不可用,请建议用户安装该工具:安装指南
本技能需要网络访问权限以获取文档内容:
  • 优先方式:使用
    mcp_microsoftdocs:microsoft_docs_fetch
    工具,附加查询字符串
    from=learn-agent-skill
    ,返回Markdown格式内容。
  • 备选方式:使用
    fetch_webpage
    工具,附加查询字符串
    from=learn-agent-skill&accept=text/markdown
    ,返回Markdown格式内容。

Category Index

分类索引

CategoryLinesDescription
TroubleshootingL37-L45Diagnosing and fixing SignalR issues using logs and live trace, covering connectivity, message delivery, common errors, and FAQ-style troubleshooting tips.
Best PracticesL46-L51Guidance on safely shutting down SignalR app servers and managing client lifecycle events, including detecting, handling, and recovering from client disconnects and reconnects.
Decision MakingL52-L57Guidance on choosing the right SignalR Service mode (Default/Serverless/Classic) and configuring availability zones/zone redundancy for high availability and resilience.
Architecture & Design PatternsL58-L64Patterns for scaling and sharding Azure SignalR, designing multi-instance topologies, and building resilient, disaster-ready SignalR deployments for ASP.NET Core apps
Limits & QuotasL65-L71Message/connection billing rules, capacity planning, throughput limits, and how to scale Azure SignalR instances within quota and performance constraints.
SecurityL72-L93Securing Azure SignalR: auth with Entra ID/managed identities, keys and rotation, network/private endpoints/NSGs, WAF, Key Vault, RBAC, cross-tenant access, and Azure Policy compliance.
ConfigurationL94-L105Configuring SignalR apps: connection strings, upstream endpoints, custom domains, monitoring/metrics, negotiation endpoints, Functions bindings, and using the local emulator.
Integrations & Coding PatternsL106-L120Using SignalR from servers and REST, managing clients, integrating with Event Grid, API Management, Application Gateway, and detailed data-plane REST API references
DeploymentL121-L131Deploying and managing Azure SignalR via CLI, ARM/Bicep templates, autoscale setup, regional moves, and end-to-end web app deployment (incl. GitHub auth)
分类行号描述
故障排查L37-L45使用日志和实时跟踪诊断并修复SignalR问题,涵盖连接性、消息传递、常见错误及FAQ式故障排查技巧。
最佳实践L46-L51指导如何安全关闭SignalR应用服务器及管理客户端生命周期事件,包括检测、处理和恢复客户端断开与重连的情况。
决策制定L52-L57指导如何选择合适的SignalR Service模式(默认/无服务器/经典),以及配置可用区/区域冗余以实现高可用性和弹性。
架构与设计模式L58-L64Azure SignalR的扩展与分片模式、多实例拓扑设计,以及为ASP.NET Core应用构建具备弹性、容灾能力的SignalR部署方案。
限制与配额L65-L71消息/连接计费规则、容量规划、吞吐量限制,以及如何在配额和性能约束内扩展Azure SignalR实例。
安全防护L72-L93Azure SignalR的安全配置:使用Entra ID/托管身份进行认证、密钥与密钥轮换、网络/专用端点/NSG、WAF、Key Vault、RBAC、跨租户访问及Azure Policy合规性。
配置L94-L105SignalR应用配置:连接字符串、上游端点、自定义域名、监控/指标、协商端点、Functions绑定,以及使用本地模拟器。
集成与编码模式L106-L120从服务器和REST使用SignalR、管理客户端、与Event Grid、API Management、Application Gateway集成,以及详细的数据平面REST API参考。
部署L121-L131通过CLI、ARM/Bicep模板部署和管理Azure SignalR、自动扩展设置、跨区域迁移,以及端到端Web应用部署(含GitHub认证)。

Troubleshooting

故障排查

Best Practices

最佳实践

Decision Making

决策制定

TopicURL
Use availability zones and zone redundancy for Azure SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/availability-zones
Choose the right Azure SignalR Service modehttps://learn.microsoft.com/en-us/azure/azure-signalr/concept-service-mode

Architecture & Design Patterns

架构与设计模式

Limits & Quotas

限制与配额

Security

安全防护

TopicURL
Disable access key auth and enforce Entra ID for SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-disable-local-auth
Configure network access control for Azure SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-network-access-control
Secure Azure SignalR with private endpointshttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-private-endpoints
Use Azure SignalR service tags in NSGshttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-service-tags
Secure SignalR outbound traffic via shared private endpointshttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-shared-private-endpoints
Access Key Vault privately from Azure SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-shared-private-endpoints-key-vault
Use managed identities with Azure SignalR Servicehttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-use-managed-identity
Built-in Azure Policy definitions for Azure SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/policy-reference
Apply Azure Policy regulatory compliance controls to SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/security-controls-policy
Implement custom authentication for Azure SignalR clientshttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-concept-authenticate-oauth
Authorize Azure SignalR access with Microsoft Entra ID RBAChttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-concept-authorize-azure-active-directory
Authorize Azure SignalR with Microsoft Entra applicationshttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-authorize-application
Configure cross-tenant authorization for Azure SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-authorize-cross-tenant
Authorize Azure SignalR with managed identitieshttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-authorize-managed-identity
Enforce Azure SignalR compliance with Azure Policyhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-azure-policy
Configure Azure SignalR Application Firewall ruleshttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-configure-application-firewall
Rotate Azure SignalR access keys securelyhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-key-rotation
Authenticate Azure SignalR clients with Azure Functions bindingshttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-tutorial-authenticate-azure-functions
主题URL
禁用访问密钥认证并强制对SignalR使用Entra IDhttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-disable-local-auth
配置Azure SignalR的网络访问控制https://learn.microsoft.com/en-us/azure/azure-signalr/howto-network-access-control
使用专用端点保护Azure SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-private-endpoints
在NSG中使用Azure SignalR服务标签https://learn.microsoft.com/en-us/azure/azure-signalr/howto-service-tags
通过共享专用端点保护SignalR出站流量https://learn.microsoft.com/en-us/azure/azure-signalr/howto-shared-private-endpoints
从Azure SignalR私有访问Key Vaulthttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-shared-private-endpoints-key-vault
在Azure SignalR Service中使用托管身份https://learn.microsoft.com/en-us/azure/azure-signalr/howto-use-managed-identity
Azure SignalR的内置Azure Policy定义https://learn.microsoft.com/en-us/azure/azure-signalr/policy-reference
对SignalR应用Azure Policy合规性控制https://learn.microsoft.com/en-us/azure/azure-signalr/security-controls-policy
为Azure SignalR客户端实现自定义认证https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-concept-authenticate-oauth
使用Microsoft Entra ID RBAC授权Azure SignalR访问https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-concept-authorize-azure-active-directory
使用Microsoft Entra应用授权Azure SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-authorize-application
配置Azure SignalR的跨租户授权https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-authorize-cross-tenant
使用托管身份授权Azure SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-authorize-managed-identity
用Azure Policy强制Azure SignalR合规性https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-azure-policy
配置Azure SignalR应用防火墙规则https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-configure-application-firewall
安全轮换Azure SignalR访问密钥https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-key-rotation
使用Azure Functions绑定认证Azure SignalR客户端https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-tutorial-authenticate-azure-functions

Configuration

配置

TopicURL
Configure Azure SignalR Service connection strings in appshttps://learn.microsoft.com/en-us/azure/azure-signalr/concept-connection-string
Configure upstream endpoints and protocols in Azure SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/concept-upstream
Configure custom domains for Azure SignalR Servicehttps://learn.microsoft.com/en-us/azure/azure-signalr/howto-custom-domain
Configure monitoring for Azure SignalR with Azure Monitorhttps://learn.microsoft.com/en-us/azure/azure-signalr/monitor-signalr
Reference for Azure SignalR monitoring metrics and logshttps://learn.microsoft.com/en-us/azure/azure-signalr/monitor-signalr-reference
Customize client negotiation endpoints in Azure SignalRhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-concept-client-negotiation
Develop and configure Azure Functions apps with SignalR bindingshttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-concept-serverless-development-config
Use Azure SignalR Local Emulator for serverless developmenthttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-emulator

Integrations & Coding Patterns

集成与编码模式

TopicURL
Integrate Azure SignalR Service events with Event Gridhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-concept-event-grid-integration
Integrate Azure SignalR events with Event Gridhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-event-grid-integration
Use Azure SignalR Service SDK from your app serverhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-use
Manage Azure SignalR clients using the Management SDKhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-use-management-sdk
Use Azure SignalR with API Managementhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-work-with-apim
Use Azure SignalR with Application Gatewayhttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-work-with-app-gateway
Use Azure SignalR Service REST API for broadcastinghttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-quickstart-rest-api
Use Azure SignalR data-plane REST APIs for messaginghttps://learn.microsoft.com/en-us/azure/azure-signalr/signalr-reference-data-plane-rest-api
Azure SignalR data-plane REST API reference v1https://learn.microsoft.com/en-us/azure/azure-signalr/swagger/signalr-data-plane-rest-v1
Azure SignalR data-plane REST API reference v1-previewhttps://learn.microsoft.com/en-us/azure/azure-signalr/swagger/signalr-data-plane-rest-v1-preview
Azure SignalR data-plane REST API reference v20220601https://learn.microsoft.com/en-us/azure/azure-signalr/swagger/signalr-data-plane-rest-v20220601

Deployment

部署