当前位置:Gxlcms > 数据库问题 > 创建 Azure Cosmos DB 帐户、数据库和集合

创建 Azure Cosmos DB 帐户、数据库和集合

时间:2021-07-01 10:21:17 帮助过:4人阅读

export LOCATION="EastUS"

export DB_NAME="Products"

az cosmosdb create --name $NAME --kind GlobalDocumentDB --resource-group $RESOURCE_GROUP

az cosmosdb database create --name $NAME --db-name $DB_NAME --resource-group $RESOURCE_GROUP

az cosmosdb collection create --collection-name "Clothing" --partition-key-path "/productId" --throughput 1000 --name $NAME --db-name $DB_NAME --resource-group $RESOURCE_GROUP

创建 Azure Cosmos DB 帐户、数据库和集合

标签:ast   keyword   doc   lob   ase   port   cat   pat   base   

人气教程排行