Issue with Persistent Cosmos DB Container Restart in Aspire (.NET 9) #6740
Labels
area-integrations
Issues pertaining to Aspire Integrations packages
azure
Issues associated specifically with scenarios tied to using Azure
azure-cosmosdb
Issues related to Azure CosmosDB
Milestone
Is there an existing issue for this?
Describe the bug
Dear Support Team,
I hope this message finds you well.
We are currently encountering an issue with Aspire while using Cosmos DB in a .NET 9 project. The problem occurs with the Cosmos DB container configured as persistent. While it functions correctly during the initial startup, it fails upon subsequent restarts—either triggered manually via Docker or after a system reboot. Specifically, the container hangs at approximately 75% completion during startup.
Below is the relevant code snippet from the project setup:
We are using the following (relevant) Aspire packages:
For reference, these are the container logs during the second startup (after the initial successful session):
We would greatly appreciate your assistance in identifying the root cause of this issue and any guidance on resolving it. Please let us know if additional information or logs are required.
Best regards,
Thovenaar
Expected Behavior
The Cosmos DB container configured with Aspire should function correctly across all sessions, regardless of restarts triggered manually through Docker or via system reboots. Specifically:
This behavior should align with the provided Aspire configuration and package versions, without requiring additional manual intervention.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
.NET 9
Anything else?
No response
The text was updated successfully, but these errors were encountered: