PartitionKeyVersion is NULL for the Azure Cosmos Container

Sai Praneeth Eranti 170 Reputation points
2024-12-17T09:17:08.2+00:00

The Microsoft documentation states that when creating a new container, the PartitionKeyVersion should be either 1 or 2, not NULL. However, when using PowerShell script to create a container without specifying "PartitionKeyVersion," it is being created with a value of NULL. This behavior seems incorrect. What could be causing this issue?

PowerShell which I'm using is here

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,710 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.