Introduction

Partition Key

Partition

How Does Partition Work?
How to Choose the Right Partition Key?
How to create Partitioned Collection
  1. Login to Azure Portal
  2. Go to Cosmos DB account
  3. Select storage capacity as Unlimited (Partitioning is not allowed for fixed storage)
  4. Give partition key value or path (e.g. /address/zipcode)
  5. Select throughput
  6. Click Ok
Monitor Partitioned Data
You can monitor how data is partitioned across partitions
  1. Login to Azure Portal
  2. Go to Cosmos DB account
  3. Click on Metrics Option
  4. Select Storage tag
  5. Select Collection name for which you want to view data
As shown in the above image, data of products are partitioned on the departmentId as a partition key.