Microsoft.Azure.DocumentDB is deprecated on NuGet
Deprecated as of 2023-03-31. Replacement: Microsoft.Azure.Cosmos. Source: Microsoft.Azure.DocumentDB on NuGet (deprecation metadata).
Check a version:
evergreen check pkg:nuget/Microsoft.Azure.DocumentDB
NuGet marks all 36 listed versions of Microsoft.Azure.DocumentDB as deprecated (reason: Legacy). The publisher’s message: “Please note, this package is obsolete as of 3/31/2023 and is no longer maintained or monitored. Microsoft encourages you to upgrade to the replacement package, Microsoft.Azure.Cosmos, to continue receiving updates. Refer to our deprecation policy (https://aka.ms/azsdk/support-policies) for more details.”
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | Deprecated |
| Severity | medium |
| Ecosystem | dotnet |
| Component | pkg:nuget/Microsoft.Azure.DocumentDB |
| Affected versions | vers:nuget/* |
| Date from the source | 2023-03-31 |
| Replacement | Microsoft.Azure.Cosmos |
| Evidence last seen | 2026-10-19 |
| Reviewed | 2026-10-19 by arminazimi, drafted by the dotnet-2 importer |
| Review due | 2027-01-17 (90 days after the last review) |
| Rule ID | dotnet.package.microsoft-azure-documentdb.deprecated |
Sources
- Microsoft.Azure.DocumentDB on NuGet (deprecation metadata) (accessed 2026-10-19)
- NuGet package deprecation (accessed 2026-10-19)
Migration
Constraints
- Keep the account, database, and container names and the stored documents the same; only the client library changes.
- The Cosmos DB v3 SDK names collections “containers” and replaces DocumentClient with CosmosClient; check queries and partition key handling after the move.
Steps
- Move to Microsoft.Azure.Cosmos. Replace Microsoft.Azure.DocumentDB with Microsoft.Azure.Cosmos and update DocumentClient code to CosmosClient, Database, and Container.
Verification
dotnet build && dotnet test: Build and test after the client library change.
Detected by
The dotnet detector. See Detectors and Compatibility.
Related
Same ecosystem
- Microsoft.Azure.ServiceBus is deprecated on NuGet
- Microsoft.Azure.Storage.Blob is deprecated on NuGet
- WindowsAzure.Storage is deprecated on NuGet
- .NET Core 1.0 is no longer supported
- .NET Core 1.1 is no longer supported
- .NET Core 2.0 is no longer supported
- .NET Core 2.1 is no longer supported
- .NET Core 2.2 is no longer supported
Data
This page is generated from registry/dotnet.json, rule dotnet.package.microsoft-azure-documentdb.deprecated, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated