azure - 如何在 Azure Cosmos DB 更改源中启用完全保真度

标签 azure azure-cosmosdb azure-cosmosdb-changefeed

我尝试使用以下代码在更改源中启用完全保真度:

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

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

但我得到以下异常:

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

如何为数据库帐户启用此模式?我在门户上没有看到任何选项。

最佳答案

公共(public)预览版即将发布,您正在使用预览版 SDK,并且 API 已启用,以便用户在公共(public)预览版发布并可以注册后使用它们。请继续关注:)

关于azure - 如何在 Azure Cosmos DB 更改源中启用完全保真度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66360999/

相关文章:

c# - 调试 DocumentDB 触发器

Azure函数: Understanding Change Feed in the context of multiple apps

error-handling - 在.NET ChangeFeed客户端库中检测限制(HTTP 429)

azure - REST API 以及使用不同编程语言的方法

azure - 如何通过 Helm 图表将 Vault 与 Kubernetes 上的 Consul 代理连接(Consul 服务器位于 Azure 托管应用程序上)

rest - 无法访问 Microsoft Azure VM 中的休息服务

azure - 如何从不同位置向 eventhub 发布事件?

c# - 使用 Microsoft.Azure.Storage (cosmosDB) 更新表对象失败

c# - 用于 ID 未填充的 .NET Core Cosmos 私有(private) setter

azure - 宇宙数据库 : Are changes ever deleted from Change Feed?