【发布时间】:2021-02-25 01:01:27
【问题描述】:
我正在尝试使用以下代码在更改提要中启用完全保真度:
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.
如何为数据库帐户启用此模式?我在门户上没有看到选项。
【问题讨论】:
标签: azure azure-cosmosdb azure-cosmosdb-changefeed