将数据加载到Azure Cosmos DB(Mongo API) [英] Load data to Azure Cosmos DB (Mongo API)

查看:52
本文介绍了将数据加载到Azure Cosmos DB(Mongo API)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法使用以下PowerShell脚本将数据写入Azure Cosmos DB(Mongo API).我想在Cosmos DB(Mongo API)中看到$ output数据.

Not able to write data to Azure Cosmos DB (Mongo API) by using below PowerShell script. I want to see $output data in Cosmos DB (Mongo API).

$Params = @{
 "URI" = 'https://3ea5e53b-817e-4c41-ae0b-c5afc1610f4e-bluemix.cloudant.com/test/_all_docs?include_docs=true'
}

$output = Invoke-RestMethod @Params | ConvertTo-Json -Depth 11 

推荐答案

无法使用PowerShell写入Cosmos DB的MongoDB API.您需要使用 MongoDB驱动程序之一来读写Cosmos DB.

It is not possible to write to Cosmos DB's MongoDB API using PowerShell. You need to use one of the MongoDB Drivers to read and write to Cosmos DB.

这篇关于将数据加载到Azure Cosmos DB(Mongo API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆