Skip to content

fix: 9.3.0 shows storage as unknown and blocks dependent services #9643

@goodcoffeecode

Description

@goodcoffeecode

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When upgrading various Aspire packages from 9.2.1 to 9.3.0, Azure storage and cosmos DB containers and entities show as "unknown" in the dashboard.

Expected Behavior

I expected the dashboard to show the containers and entities as "Running"

Steps To Reproduce

My AppHost is targeting 9.2.1 for the following packages...

  • Aspire.Hosting.AppHost
  • Aspire.Hosting.Azure.CosmosDB
  • Aspire.Hosting.Azure.Storage

When I run my app, I see all containers running in the dashboard.

Image

Reproduction Steps

  1. Upgrade either Aspire.Hosting.Azure.CosmosDB or Aspire.Hosting.Azure.Storage to 9.3.0
  2. Ctrl+F5 to run the AppHost
  3. Ctrl+C in the console to kill the process
  4. Ctrl+F5 to run the AppHost

Now, in the dashboard, all the containers are "unknown"...

Image

Reversion Steps

  1. Revert package back to 9.2.1
  2. Clean the solution
  3. Ctrl+F5 to run the AppHost

Now, all containers are running again.

Impact

All the containers are actually running. However, if any of my apps WaitFor() those containers or entities, they themselves will never start.

Furthermore, when deployed to Azure, the dashboard shows no information about Cosmos DB or Azure Storage at all.

Workaround

Removing the WaitFor(), but leaving the WithReference() is sub-optimal, but the service do start and the app works as expected.

Exceptions (if any)

No exceptions.

.NET Version info

C# .NET 9

Anything else?

VS 2022 17.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-integrationsIssues pertaining to Aspire Integrations packages‼️regression-from-last-releaseThis used to work in an earlier version of Aspire and we broke it!

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions