-
Notifications
You must be signed in to change notification settings - Fork 117
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
Rewrite of the Azure Cosmos DB articles #2324
base: main
Are you sure you want to change the base?
Conversation
.OfType<CosmosDBAccount>() | ||
.Single(); | ||
|
||
cosmosDbAccount.Kind = CosmosDBAccountKind.MongoDB; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work when you use the client integration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not certain, but why wouldn't it?
@@ -129,6 +129,9 @@ var cosmos = builder.AddAzureCosmosDB("cosmos-db") | |||
|
|||
When you call `AddDatabase`, it configures your Cosmos DB resources to have a database named `db`. The database is created in the Cosmos DB account that's represented by the `AzureCosmosDBResource` that you added earlier. The database is a logical container for collections and users. For more information, see [Databases, containers, and items in Azure Cosmos DB](/azure/cosmos-db/resource-model). | |||
|
|||
> [!NOTE] | |||
> When using the `AddDatabase` API to add a database to an Azure Cosmos DB resource, if you're running the emulator, the database isn't actually created in the emulator. This API is intended to include a database in the [Bicep generated](#generated-provisioning-bicep) by the provisioning infrastructure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is true for all database resources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's really good to know... it's certainly confusing, I'll update the other places to make this obvious to consumers. It would be AMAZING if the triple slash comments said something about that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aspire.Microsoft.Data.SqlClient
-AddDatabase
doesn't create database? aspire#4813- Aspire SqlServer integration doesn't actually create a database when calling AddDatabase aspire#6863
We're going to end up fixing it so that it does create the database.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM @IEvangelist
You can when you're ready.
Summary
Rewrite of the Azure Cosmos DB.
Fixes #2307
Internal previews