Aspire.Hosting.Azure.SignalR
13.2.2
Prefix Reserved
dotnet add package Aspire.Hosting.Azure.SignalR --version 13.2.2
NuGet\Install-Package Aspire.Hosting.Azure.SignalR -Version 13.2.2
<PackageReference Include="Aspire.Hosting.Azure.SignalR" Version="13.2.2" />
<PackageVersion Include="Aspire.Hosting.Azure.SignalR" Version="13.2.2" />
<PackageReference Include="Aspire.Hosting.Azure.SignalR" />
paket add Aspire.Hosting.Azure.SignalR --version 13.2.2
#r "nuget: Aspire.Hosting.Azure.SignalR, 13.2.2"
#:package Aspire.Hosting.Azure.SignalR@13.2.2
#addin nuget:?package=Aspire.Hosting.Azure.SignalR&version=13.2.2
#tool nuget:?package=Aspire.Hosting.Azure.SignalR&version=13.2.2
Aspire.Hosting.Azure.SignalR library
Provides extension methods and resource definitions for an Aspire AppHost to configure Azure SignalR.
Getting started
Prerequisites
- Azure subscription - create one for free
Install the package
Install the Aspire Azure SignalR Hosting library with NuGet:
dotnet add package Aspire.Hosting.Azure.SignalR
Configure Azure Provisioning for local development
Adding Azure resources to the Aspire application model will automatically enable development-time provisioning for Azure resources so that you don't need to configure them manually. Provisioning requires a number of settings to be available via .NET configuration. Set these values in user secrets in order to allow resources to be configured automatically.
{
"Azure": {
"SubscriptionId": "<your subscription id>",
"ResourceGroupPrefix": "<prefix for the resource group>",
"Location": "<azure location>"
}
}
NOTE: Developers must have Owner access to the target subscription so that role assignments can be configured for the provisioned resources.
Usage example
In the AppHost.cs file of AppHost, add a SignalR connection and consume the connection using the following methods:
var signalR = builder.AddAzureSignalR("sr");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(signalR);
The WithReference method configures a connection in the MyService project named sr. In the Program.cs file of MyService, the Azure SignalR connection can be consumed using the client library Microsoft.Azure.SignalR:
builder.Services.AddSignalR()
.AddNamedAzureSignalR("sr");
Connection Properties
When you reference an Azure SignalR resource using WithReference, the following connection properties are made available to the consuming project:
| Property Name | Description |
|---|---|
Uri |
The connection URI for the SignalR service, with the format https://{host} in Azure (typically https://<resource-name>.service.signalr.net) or the emulator-provided endpoint when running locally |
Aspire exposes each property as an environment variable named [RESOURCE]_[PROPERTY]. For instance, the Uri property of a resource called sr becomes SR_URI.
Additional documentation
- https://github.com/microsoft/aspire/tree/main/src/Components/README.md
- https://aspire.dev/integrations/cloud/azure/azure-signalr/
- https://learn.microsoft.com/azure/azure-signalr/signalr-overview
Feedback & contributing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Aspire.Hosting.Azure (>= 13.2.2)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Azure.Core (>= 1.51.1)
- Azure.Identity (>= 1.18.0)
- Azure.Provisioning (>= 1.5.0)
- Azure.Provisioning.KeyVault (>= 1.1.0)
- Azure.Provisioning.SignalR (>= 1.1.0)
- Azure.ResourceManager.Resources (>= 1.11.2)
- Azure.Security.KeyVault.Secrets (>= 4.8.0)
- Google.Protobuf (>= 3.33.5)
- Grpc.AspNetCore (>= 2.76.0)
- Grpc.Net.ClientFactory (>= 2.76.0)
- Grpc.Tools (>= 2.78.0)
- Humanizer.Core (>= 2.14.1)
- JsonPatch.Net (>= 3.3.0)
- KubernetesClient (>= 18.0.13)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.25)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.5)
- Microsoft.Extensions.Hosting (>= 10.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Http (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Options (>= 10.0.5)
- Microsoft.Extensions.Primitives (>= 10.0.5)
- ModelContextProtocol (>= 1.0.0)
- Newtonsoft.Json (>= 13.0.4)
- Polly.Core (>= 8.6.5)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.22.23)
- System.IO.Hashing (>= 10.0.3)
- System.Text.Json (>= 10.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Aspire.Hosting.Azure.SignalR:
| Repository | Stars |
|---|---|
|
foxminchan/BookWorm
The practical implementation of Aspire using Microservices, AI-Agents
|
|
|
PacktPublishing/Pragmatic-Microservices-with-CSharp-and-Azure
Pragmatic Microservices with C# and Azure, published by Packt
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 13.2.2 | 1,891 | 4/8/2026 | |
| 13.2.1 | 3,692 | 3/31/2026 | |
| 13.2.0 | 3,373 | 3/23/2026 | |
| 13.1.3 | 2,311 | 3/19/2026 | |
| 13.1.2 | 6,645 | 2/26/2026 | |
| 13.1.1 | 3,780 | 2/11/2026 | |
| 13.1.0 | 13,364 | 12/17/2025 | |
| 13.0.2 | 3,397 | 12/4/2025 | |
| 13.0.1 | 1,815 | 11/26/2025 | |
| 13.0.0 | 3,075 | 11/11/2025 | |
| 9.5.2 | 6,871 | 10/23/2025 | |
| 9.5.1 | 6,579 | 10/3/2025 | |
| 9.5.0 | 3,520 | 9/25/2025 | |
| 9.4.2 | 8,372 | 9/2/2025 | |
| 9.4.1 | 3,344 | 8/12/2025 | |
| 9.4.0 | 6,035 | 7/29/2025 | |
| 9.3.1 | 9,968 | 6/10/2025 | |
| 9.3.0 | 4,221 | 5/19/2025 | |
| 9.2.1 | 3,443 | 4/24/2025 | |
| 9.2.0 | 3,787 | 4/10/2025 |