'How to get the size of a partition in Cosmos DB collection?
I am really surprised that I could not find this information.
I have seen a comment (without details) that there is a REST API to get this information. I will try to find this information.
Solution 1:[1]
You can use azure cli to get the size of a mongo collection like this.
az cosmosdb mongodb collection show -g myRG -a mycosmosaccount -d mydatabase -n mycollection
I also think you can get this via REST API on Management Plane. API sample for that is here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mark Brown |
