Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.37k stars 4.79k forks source link

The information on the article is incorrect. You cannot set the AnalyticalStoreTimeToLiveInSeconds to null #46814

Open hesperanca opened 3 hours ago

hesperanca commented 3 hours ago

Type of issue

Code doesn't work

Description

There has been a lot of confusion about how to disable the analytical store on a Cosmos container. I raised a bug about this some time ago that was dealt with by @ealsur. Some of the documentation has been amended, but this article still states that we can disable the CosmosDB integration by setting the TTL value to null, which is incorrect.

According to the updated documentation, to disable the analytical store we need to set the AnalyticalStoreTimeToLiveInSeconds property to 0 (not null as stated in this article).

It would also be great if it could be documented that setting the AnalyticalStoreTimeToLiveInSeconds property to 0 will not work if continuous backup is enabled (which is the default).

We are an ISV selling a SAAS application that is heavily dependent on CosmosDB. Documentation issues like this one can severely the service we provide to our customers.

Thanks for your help.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.containerproperties.analyticalstoretimetoliveinseconds?view=azure-dotnet

Content source URL

https://github.com/Azure/azure-docs-sdk-dotnet/blob/master/xml/Microsoft.Azure.Cosmos/ContainerProperties.xml

Document Version Independent Id

5d68eda7-bc03-d2b1-8f5b-e55207a4b839

Article author

@azure-sdk

Metadata

github-actions[bot] commented 3 hours ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @anfeldma-ms @kushagraThapar @MehaKaushik @pjohari-ms @shurd @zfoster.