Container Lifetime for CosmosDB and Azure Storage Account (v9) #6774
-
I read about the new After some investigation the problem seems to be that the Is there any way to get these containers to be persistent (especially the CosmosDB one that takes a long time to fully start)? Running dotnet9 and Aspire v9. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Aspire 9 changed some of the signatures slightly. var storage = builder.AddAzureStorage("storage")
.RunAsEmulator(o =>
{
o.WithLifetime(ContainerLifetime.Persistent);
// ...
var cosmos = builder.AddAzureCosmosDB("nosql")
.RunAsEmulator(o =>
{
o.WithLifetime(ContainerLifetime.Persistent);
// ... |
Beta Was this translation helpful? Give feedback.
Aspire 9 changed some of the signatures slightly.