Azure Storage ports changing despite using ContainerLifetime.Persistent
#7058
Labels
area-integrations
Issues pertaining to Aspire Integrations packages
azure-storage
Issues related to azure storage integration
Milestone
Is there an existing issue for this?
Describe the bug
We're using Azure Storage with Emulator and configure it to stay alive between runs using
c.WithLifetime(ContainerLifetime.Persistent)
. Despite that, every time we re-run the AppHost the ports the Emulator is exposing for the app change. This is unexpected and makes things harder than they should be. E.g. we're also using Durable Functions in our project, and use Durable Functions Monitor in VS Code to inspect the inner workings of Durable Task Framework. However, because the ports for the Storage change on every run, the Monitor breaks and we have to re-add a new connection, after getting the new set of ports from Aspire Dashboard.Expected Behavior
I would expect the Azure Storage connection string exposed by the emulator to stay stable between re-runs of App Host if configured with
WithLifetime(ContainerLifetime.Persistent)
Steps To Reproduce
Exceptions (if any)
No response
.NET Version info
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: