Currently, I am utilizing @azure/cosmos
version 3.9.5
to establish a Container and collection within Cosmos DB
. My objective is to create a collection with the maxThroughput parameter in order to enable auto-scaling.
comosRefClient.database("sample").containers.createIfNotExists({ id: "samplecoll1", 5000 });
According to the documentation, this should result in creating a collection with Autoscaling set at a maximum RU of 5000. However, the collection is being generated in Manual Mode with 5000 RUs.
I have thoroughly reviewed the documentation and examined the unit testing code from the SDK, both indicating that everything should be functioning correctly.
- API - https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/cosmosdb/cosmos/src/client/Container/ContainerRequest.ts
- Documentation - https://learn.microsoft.com/en-us/javascript/api/@azure/cosmos/containerrequest?view=azure-node-latest
- Unit Testing from SDK - https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/cosmosdb/cosmos/test/public/functional/container.spec.ts
Your assistance with this matter would be greatly appreciated.