Skip to content

Add Aspire AppHost orchestration to samples with Aspire 13.1.0#2240

Open
Copilot wants to merge 4 commits intodevfrom
copilot/add-aspire-apphost-samples
Open

Add Aspire AppHost orchestration to samples with Aspire 13.1.0#2240
Copilot wants to merge 4 commits intodevfrom
copilot/add-aspire-apphost-samples

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 18, 2025

Summary of the changes (Less than 80 chars)

  • Add Aspire 13.1.0 AppHost project for sample orchestration
  • Update samples to use named Azure SignalR connections
  • Add auto mode and environment variable support to C# client
  • Install Aspire workload in CI workflows

Changes

Aspire Integration

  • New Samples.AppHost project using Aspire.Hosting.AppHost 13.1.0 and Aspire.Hosting.Azure.SignalR 13.1.0
  • Orchestrates ChatSample server, C# client with automatic Azure SignalR provisioning
  • Configures Standard S1 SKU for SignalR resource

Sample Updates

  • ChatSample now uses AddNamedAzureSignalR("signalr1") instead of hardcoded credentials
  • C# client supports ServerEndpoint and MODE environment variables for Aspire orchestration
  • Added auto broadcast mode with cancellation support for automated testing

CI/CD

  • Added dotnet workload install aspire step to Windows, Ubuntu, and macOS workflows

Example Usage

Run with Aspire (auto-provisions Azure resources):

cd samples/Samples.AppHost
dotnet run

Or configure manually:

dotnet user-secrets set ConnectionStrings:signalr1 "<connection-string>"

See updated README in ChatSample for detailed instructions.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • 1javsblobprodcus364.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet dotnet build AzureSignalR.sln (dns block)
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/azure-signalr/azure-signalr/AzureSignalR.sln --packages /home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • 1s1vsblobprodcus386.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet dotnet build AzureSignalR.sln (dns block)
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/azure-signalr/azure-signalr/AzureSignalR.sln --packages /home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • kmuvsblobprodcus389.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet dotnet build AzureSignalR.sln (dns block)
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/azure-signalr/azure-signalr/AzureSignalR.sln --packages /home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • n3kvsblobprodcus335.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet dotnet build AzureSignalR.sln (dns block)
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/azure-signalr/azure-signalr/AzureSignalR.sln --packages /home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • pe3vsblobprodcus354.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet dotnet build AzureSignalR.sln (dns block)
    • Triggering command: /usr/bin/dotnet dotnet restore (dns block)
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/azure-signalr/azure-signalr/AzureSignalR.sln --packages /home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)
  • pkvvsblobprodcus321.vsblob.vsassets.io
    • Triggering command: /usr/bin/dotnet dotnet build AzureSignalR.sln (dns block)
    • Triggering command: /usr/bin/dotnet dotnet restore --no-dependencies /home/REDACTED/work/azure-signalr/azure-signalr/AzureSignalR.sln --packages /home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/packages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal /p:TargetFrameworkRootPath=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot /p:NetCoreTargetingPackRoot=/home/REDACTED/work/azure-signalr/.codeql-scratch/dbs/csharp/working/emptyFakeDotnetRoot (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Create a pull request, as similar to what #2037 has done, add aspire apphost to samples using the latest aspire.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits December 19, 2025 00:05
… strings with Aspire 13.1.0

Co-authored-by: vicancy <668244+vicancy@users.noreply.github.com>
Co-authored-by: vicancy <668244+vicancy@users.noreply.github.com>
…tation

Co-authored-by: vicancy <668244+vicancy@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Aspire apphost to samples using latest Aspire Add Aspire AppHost orchestration to samples with Aspire 13.1.0 Dec 19, 2025
Copilot AI requested a review from vicancy December 19, 2025 00:14
@vicancy vicancy marked this pull request as ready for review December 19, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants