microsoft / microsoft/aspire

aspire deploy failing for a simple Azure Container App

Open
#13,960 2 comments 0 reactions 0 assignees View on GitHub
needs-area-label
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 12h
Merged PRs (30d)
201

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

Attempting to deploy a working solution to Azure Container App using aspire deploy consistently fails. The AppHost process exits prematurely, and the CLI cannot establish a backchannel connection.

[14:57:50] [dbug] AppHostCliBackchannel: Connecting to AppHost backchannel at C:\redacted\\.aspire\cli\backchannels\cli.sock.1495c4e14e024702b112386458ff3891
[14:57:50] [dbug] DotNetCliRunner: dotnet process with PID: 4712 has exited with code: -532462766
[14:57:50] [fail] DotNetCliRunner: AppHost process has exited. Unable to connect to backchannel at C:\redacted\\.aspire\cli\backchannels\cli.sock.1495c4e14e024702b112386458ff3891
System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.CreateException(SocketError, Boolean) + 0x66

### Expected Behavior

_No response_

### Steps To Reproduce

_No response_

### Exceptions (if any)

_No response_

### .NET Version info

dotnet --info
.NET SDK:
Version: 10.0.102
Commit: 4452502459
Workload version: 10.0.100-manifests.e5d3dea4
MSBuild version: 18.0.7+445250245

### Anything else?

aspire: 13.1.0+8a4db1775c3fbae1c602022b636299cb04971fde

Contributor guide

Open the contributing guide

Research direction

Start with the AppHostCliBackchannel connection and DotNetCliRunner exit reported in the log, using the stated .NET SDK 10.0.102 and Aspire 13.1.0 versions. Reproduce with a simple Azure Container App deployment; done means the AppHost remains running long enough for the CLI to establish its backchannel and the deployment completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.