Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

IEvangelist
Copy link
Member

@IEvangelist IEvangelist commented Dec 18, 2024

@dotnetrepoman dotnetrepoman bot added the database Content related to database. label Dec 18, 2024
.OfType<CosmosDBAccount>()
.Single();

cosmosDbAccount.Kind = CosmosDBAccountKind.MongoDB;
Copy link
Member

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?

Copy link
Member Author

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?

@IEvangelist IEvangelist changed the title Initial rewrite of the Azure Cosmos DB. Rewrite of the Azure Cosmos DB articles Dec 19, 2024
@dotnet-policy-service dotnet-policy-service bot added the okr-quality Content-health KR: Concerns article defects/freshness or build warnings. label Dec 19, 2024
@IEvangelist IEvangelist marked this pull request as ready for review December 19, 2024 14:09
@@ -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.
Copy link
Member

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

Copy link
Member Author

@IEvangelist IEvangelist Dec 19, 2024

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@BillWagner BillWagner left a 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 :shipit: when you're ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Content related to database. okr-quality Content-health KR: Concerns article defects/freshness or build warnings.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite of the Azure Cosmos DB integration articles
3 participants