skip to Main Content

I created my first cosmos db database. In that database, I created a container name person with pid as the partition key.

Now I want to create a new container in same database with name order with "pid" as the partition key. But the o button is disabled with no warning or error message. What is the issue ?

enter image description here
enter image description here

2

Answers


  1. You must select the existing database at the top (‘Purchase’ database):

    enter image description here

    I don’t see the complexity of this, to be honest.

    Login or Signup to reply.
  2. Above comments are not exactly helpful. I had the same issue as you did. I could fix it by:

    • go to https://cosmos.azure.com/
    • add new container
    • Click "add hierarchical partition key
    • remove the hierarchical partition key

    Now the OK turned blue, and I could create the container. In the Data Explorer on portal.azure.com I could not get create containers.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search