Add support for Cosmos DB Connection strings #20712
Labels
area-cosmos
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
good first issue
This issue should be relatively straightforward to fix.
type-enhancement
Milestone
Current State
Currently, the
DbContextOptionsBuilder.UseCosmos
method has one overload that takes the Cosmos DB URI and key.Potential Issue
We're about to ship some updates in the tooling that will dial in the Cosmos DB connection string more elegantly. Customers who use that tooling would get a connection string handed to them in config, but they'd have a paper cut here - they can't use that pre-wired-up connection string with the
UseCosmos
method.Proposed Solution
Add an overload that takes a single string rather than the URI and the key, and take in the Connection String the tooling team will be pulling down from the Cosmos DB RP.
Adding @timheuer and @AngelosP and @vijayrkn FYI for visibility. If you'd like support on the feature let us know.
The text was updated successfully, but these errors were encountered: