-
Notifications
You must be signed in to change notification settings - Fork 739
Open
Copy link
Labels
area-integrationsIssues pertaining to Aspire Integrations packagesIssues pertaining to Aspire Integrations packagesazure-cosmosdbIssues related to Azure CosmosDBIssues related to Azure CosmosDB
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Hi, I've tried the Aspire 9.2.1 with Cosmos DB hosting integration with the preview emulator. But the following code does not create databases and containers when we check in the data explorer. I'm wondering if it's a bug or this is not supported yet
var builder = DistributedApplication.CreateBuilder(args);
var cosmos = builder.AddAzureCosmosDB("cosmos-db")
.RunAsPreviewEmulator(emulator =>
{
emulator.WithDataExplorer();
});
var customers = cosmos.AddCosmosDatabase("customers");
var profiles = customers.AddContainer("profiles", "/id");
var orders = cosmos.AddCosmosDatabase("orders");
var details = orders.AddContainer("details", "/id");
var history = orders.AddContainer("history", "/id");
builder.Build().Run();Dashboard:
Data Explorer:
Expected Behavior
Should create the cosmos database and containers when using the preview emulator
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
9.0.203
Anything else?
No response
plaurin and oravecjakub
Metadata
Metadata
Assignees
Labels
area-integrationsIssues pertaining to Aspire Integrations packagesIssues pertaining to Aspire Integrations packagesazure-cosmosdbIssues related to Azure CosmosDBIssues related to Azure CosmosDB

