【发布时间】:2020-04-14 14:45:37
【问题描述】:
团队,我在 Azure 门户中创建了新的 CosmosDB 帐户,其中包含一个包含集合项列表的容器。我可以在 power shell 脚本中访问容器详细信息。
如何使用 power shell 脚本使用分区键列出集合项或显示特定的集合项
Power shell 脚本:
Get-AzResource -ResourceType "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers" -ApiVersion "2020-03-01" -ResourceGroupName "testRG" -Name "cosmosaccount1/database1/containercollection1"
【问题讨论】:
标签: azure powershell azure-cosmosdb azure-powershell az