Search code examples
azureazure-cosmosdbazure-cosmosdb-changefeed

How to enable full fidelity in Azure Cosmos DB Change Feed


I'm trying to enable full fidelity in Change Feed by using the following code:

ContainerProperties containerProperties = new ContainerProperties("myContainer", "/pk");
containerProperties.ChangeFeedPolicy.FullFidelityRetention = TimeSpan.FromMinutes(5);

CosmosContainerResponse containerCreateResponse = await database.CreateContainerAsync(containerProperties, 400);

but I get the following exception:

The retention duration in Change Feed policy can only be enabled when Full-Fidelity is enabled for database account.

How does one enable this mode for the database account? I did not see an option on the portal.


Solution

  • Public preview will be announced shortly, you are using a preview SDK and the APIs are enabled there for users to leverage them once public preview is announced and enrollment is possible. Stay tuned :)