如何在Cosmos DB容器上显示唯一键? [英] How to show unique keys on Cosmos DB container?
问题描述
此链接意味着通过查看设置可以在Cosmos DB容器中看到唯一的密钥.但是,我似乎无法同时使用门户网站和存储资源管理器找到它们.如何查看现有Cosmos DB容器上的唯一键?我有一个文档因密钥冲突而无法加载,这本来是不可能的,所以我需要确认密钥是什么.
This link implies that unique keys can be seen in a Cosmos DB container by looking at the settings. However I can't seem to find them using both the portal and the storage explorer. How can you view the unique keys on an existing Cosmos DB container? I have a document that fails to load due to a key violation which should be impossible so I need to confirm what the keys are.
推荐答案
查看Cosmos DB唯一键的一种更简单的方法是查看资源的ARM模板.
A slightly easier way to view your Cosmos DB unique keys is to view the ARM template for your resource.
在您的Cosmos DB帐户上,单击设置/导出模板"-生成模板并在完成后在线查看.您将在"uniqueKeyPolicy"标签下找到它们.
On your Cosmos DB account, click Settings/ Export Template- let the template be generated and view online once complete. You will find them under the "uniqueKeyPolicy" label.
这篇关于如何在Cosmos DB容器上显示唯一键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!