Source integration

Cosmos DB

Connect an Azure Cosmos DB (Core/SQL API) account as a migration source. NoSQLSync samples items across a container to infer a schema and reads the change feed for live replication.

Start free →

Connection requirements

  • The account's endpoint URL and a primary (or read-only) key from Azure Portal → Keys
  • Core (SQL) API accounts only — Cosmos DB for MongoDB API isn't covered by this connector
  • The database and container to migrate — Cosmos has real databases and containers, so they're listed directly rather than a placeholder

Cosmos DB change feed (pull model)

CDC polls the container's change feed in LatestVersion mode — the SDK-native, no-extra-configuration mode — which surfaces inserts and updates in near real time. It does not surface deletes: that requires a separate "all versions and deletes" mode with continuous backups enabled on the account, which isn't implemented yet. Run a fresh full sync to reconcile any deletions.

Setup

1
Get the endpoint and key
In Azure Portal, open the Cosmos DB account → Keys, and copy the URI and a primary key.
2
Add the connection
Paste the endpoint and key under Connections → Add.
3
Pick a database and container, then introspect
NoSQLSync lists your real Cosmos databases and containers, then samples items in the chosen container to build a schema.

FAQ

Does this work with Cosmos DB for MongoDB API?

No — that's a separate wire-protocol compatibility layer with its own change-stream behavior. This connector uses the Core (SQL) API's native change feed and query surface.

Are deletes replicated live?

Not currently. The default change feed mode surfaces inserts and updates only. Run a fresh full sync to pick up anything deleted since the last one.

See every Cosmos DB migration path →