Azure Cosmos DB in IoT workloads The partition key determines how Azure Cosmos DB routes data in partitions. The IoT Device ID is the usual partition key for IoT applications. Incorrect: * date Would be the same during the whole day, which is not good. Note: Use item ID [Device ID] as the partition key If your container has a property that has a wide range of possible values, it's likely a great partition key choice. One possible example of such a property is the item ID. For small read- heavy containers or write-heavy containers of any size, the item ID (/id) is naturally a great choice for the partition key. The system property item ID exists in every item in your container. You might have other properties that represent a logical ID of your item. In many cases, these IDs are also great partition key choices for the same reasons as the item ID. The item ID is a great partition key choice for the following reasons: There are a wide range of possible values (one unique item ID per item). Because there's a unique item ID per item, the item ID does a great job at evenly balancing RU consumption and data storage. You can easily do efficient point reads since you always know an item's partition key if you know its item ID. Reference: https://learn.microsoft.com/en-us/azure/architecture/solution-ideas/articles/iot-using-cosmos-db https://learn.microsoft.com/en-us/azure/cosmos-db/partitioning-overview