无法在 Cosmos DB 中创建新容器。

huangapple go评论60阅读模式
英文:

unable to create new container in cosmos db

问题

我创建了我的第一个 cosmos db 数据库。在该数据库中,我创建了一个名为 person 的容器,并将 pid 作为分区键。

现在我想在同一个数据库中创建一个名为 order 的新容器,并将 "pid" 作为分区键。但是 o 按钮被禁用,没有警告或错误消息。问题是什么?

英文:

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 ?

无法在 Cosmos DB 中创建新容器。
无法在 Cosmos DB 中创建新容器。

答案1

得分: 2

上述评论并不完全有帮助。我遇到了与您相同的问题。我可以通过以下方式解决:

现在 "OK" 变成了蓝色,我可以创建容器了。在 portal.azure.com 上的数据资源管理器中,我无法创建容器。

英文:

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.

答案2

得分: 0

你必须在顶部选择现有的数据库('Purchase' 数据库):

无法在 Cosmos DB 中创建新容器。

老实说,我没有看到这个的复杂性。

英文:

You must select the existing database at the top ('Purchase' database):

无法在 Cosmos DB 中创建新容器。

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

答案3

得分: 0

不理想,但删除整个数据库对我解决了这个问题。这似乎与免费套餐有关。

英文:

Not ideal, but deleting the entire database fixed this issue for me. It does appear to be related to the free tier.

huangapple
  • 本文由 发表于 2023年5月29日 04:16:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76353436.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定