-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when referencing CosmosDB #1502
Comments
It seems that you are missing a connection string. you need to provide the azure cosmos connection string for the cosmos resource to actually be created so that the app can then reference it. Based on the logs that you provided
And this section in the cosmos documentation which mentions a connection string being required since you must provision it in azure for it to work currently (support for the local emulator is in progress right now, but for now using azure is the only way to do it). https://learn.microsoft.com/en-us/dotnet/aspire/database/azure-cosmos-db-component?tabs=dotnet-cli |
Good news @Kralizek ... the Thanks for creating the sample request. I'll close this issue down since it should be resolved. |
I have this simple application
When I launch it, I get the following error message:
The documentation mentions here
But in Preview 2, the AddDatabase method is not available (see dotnet/docs-aspire#154)
Note: I would appreciate if a sample using CosmosDB could be added to the aspire-samples repo.
The text was updated successfully, but these errors were encountered: