High demand on Azure Cosmos DB Emulator when adding a new collection

According to the official documentation.

By default, you can create up to 25 single partition collections, or 1 partitioned collection using the Azure Cosmos DB Emulator. By modifying the PartitionCount value, you can create up to 250 single partition collections or 10 partitioned collections, or any combination of the two that does not exceed 250 single partitions (where one partitioned collection = 25 single partition collection).

So basically, if you want to create more partitioned collections or more single-partition collections, just increase the PartitionCount when starting from the command-line:

CosmosDB.Emulator.exe /PartitionCount=100

Someone else on my team could get this working without the need for CosmosDB.Emulator.exe /PartitionCount=100. We could see that the containers where not being created.

Microsoft explains how to resolve this issue: https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator#set-partitioncount

enter image description here

enter image description here

  1. Reset Data
  2. Exit CosmosDb
  3. Go to %LOCALAPPDATA%\CosmosDBEmulator and delete all content
  4. Restart your machine for good measure

You should now be able to retry and all should work.