Title: How to remove EnableMongo16MBDocumentSupport capability from Azure Cosmos DB to enable CMK encryption?

Shubham Raut 45 Reputation points
2025-08-11T12:14:47.2366667+00:00

Title: How to remove EnableMongo16MBDocumentSupport capability from Azure Cosmos DB to enable CMK encryption?

Body:

I have an Azure Cosmos DB account (Mongo API) that currently has the following capabilities enabled:

json

CopyEdit

`[
  { "name": "EnableMongo" },
  { "name": "EnableMongo16MBDocumentSupport" }
]
`

I need to enable Customer Managed Key (CMK) encryption, but I’m getting the error: EnableMongo16MBDocumentSupport and CMK encryption are not supported together. I can’t find an option in the portal to disable EnableMongo16MBDocumentSupport. Question: Is there a way to remove this capability from an existing Cosmos DB account, or do I need to create a new account without it? If a new account is required, what’s the best approach for migrating data with minimal downtime?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
{count} votes

Accepted answer
  1. Saraswathi Devadula 12,675 Reputation points Microsoft External Staff Moderator
    2025-08-11T14:09:10.3533333+00:00

    Hello Shubham Raut

    unfortunately, it is not possible to remove the EnableMongo16MBDocumentSupport capability from an existing Azure Cosmos DB for MongoDB account. This capability cannot be disabled or removed, as it is a required feature for enabling 16MB document support.
    User's image

    Reference:https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/how-to-configure-capabilities#available-capabilities

    If you need to enable CMK encryption, you will have to create a new account without this capability.**
    **
    Regarding the data migration, ADF is the best option and please refer the below document for more steps.
    https://learn.microsoft.com/en-us/azure/data-factory/connector-mongodb?tabs=data-factory

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.