.Net Api for CosmosDb

Hello All,
is it possible to create the collection usigng MongoDB.Driver’s CreateCollection method, that will have the analytical storage enabled? , I cannot find options for that in CreateCollectionOptions class.


Hi, @Tomasz_Lubocki,

CosmosDb is a third-party product that is not supported by MongoDB. Please reach out to Microsoft Technical Support about how to configure analytical storage when creating a collection. You will likely have to use db.RunCommand<BsonDocument>(command) as it is unlikely that the driver supports the necessary custom fields for a CosmosDb-specific feature.