Skip to content

Azure Storage Emulator doesn't start in Aspire 13.4 with persistent container lifetime #17831

@sander1095

Description

@sander1095

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When installing Aspire 13.4 and using Azure Storage Emulator with a persistent lifetime, the storage resource never starts.

The same code DOES work in previous versions of Aspire.

Expected Behavior

Storage starts

Steps To Reproduce

aspire new aspire-empty --language csharp
aspire add azure-storage

Replace apphost code with this:

#:package Aspire.Hosting.Azure.Storage@13.4.0
#:sdk Aspire.AppHost.Sdk@13.4.0

var builder = DistributedApplication.CreateBuilder(args);

var storage = builder
    .AddAzureStorage("storage")
    .RunAsEmulator(azurite =>
        azurite
            .WithLifetime(ContainerLifetime.Persistent)
    );

builder.Build().Run();

Call aspire start, the storage resource never comes online

Do the same in aspire 13.3, and it does work

Exceptions (if any)

No response

Aspire doctor output

Aspire Environment Check

Aspire
✅ Aspire CLI version 13.4.0 (channel: stable)

Container Runtime
✅ Docker v28.3.2: running (auto-detected (default)) ← active

Environment
✅ HTTPS development certificate is trusted
⚠️ HTTPS development certificate has an older version (v4)
Run 'aspire certs clean' to remove all certificates, then run 'aspire certs trust' to create and trust a new one.
See: https://aka.ms/aspire-prerequisites#dev-certs
Details:
Older certificate versions (< v4) may not support all certificate trust scenarios.

Summary: 3 passed, 1 warnings, 0 failed
For detailed prerequisites: https://aka.ms/aspire-prerequisites

Aspire CLI Installations

╭─────────────────────────────────────────────────┬─────────────────────────────────────────────────┬─────────┬───────────┬─────────────╮
│ Path │ Version │ Channel │ Route │ PATH status │
├─────────────────────────────────────────────────┼─────────────────────────────────────────────────┼─────────┼───────────┼─────────────┤
│ C:\Users\stenb.aspire\bin\aspire.exe (current) │ 13.4.0+becb48e2d61099e35ae336d527d3875e928d6594 │ stable │ (unknown) │ active │
╰─────────────────────────────────────────────────┴─────────────────────────────────────────────────┴─────────┴───────────┴─────────────╯

Anything else?

Might be related to #17822

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationtriage:bot-seenAspire triage bot has seen this issue‼️regression-from-last-releaseThis used to work in an earlier version of Aspire and we broke it!

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions