Cosmos DB resource `RunAsEmulator()`: "The evaluation period has expired"
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
I ran into this when running our Aspire tests locally:

This results in the test hanging for 10 minutes, presumably waiting for the container to start (it will never start). This issue occurs because machine already has an older version of the Cosmos DB container image and [we are specifying the tag `"latest"`](https://github.com/dotnet/aspire/blob/044f7690c2223d0e95fc0d70efb3494fb94b45fd/src/Aspire.Hosting.Azure.CosmosDB/AzureCosmosDBExtensions.cs#L100) and not periodically forcing a re-pull.
Perhaps we should check image age and re-pull images older than a certain period.
Either way, assuming Cosmos DB does not change its behavior, this will result in broken dev inner-loops and CI pipelines down the line.
Contributor guide
Assessment
This issue has not been assessed yet.