Questions tagged [azure-cosmosdb-mongoapi]

Azure Cosmos DB databases can be configured to use the MongoDB API. Via this feature Cosmos DB aims to provide a compatible server interface for applications using the MongoDB wire protocol. Since Cosmos DB is a distinct implementation from MongoDB server, some server commands may not be supported yet or may differ in behavior.

Documentation

437 questions
1
vote
1 answer

Azure Cosmos DB CSV upload

I am opening a CSV file in Python in Pycharm, then I want to upload it to my Container in Cosmos DB. It's not working. if os.path.exists(csv_file): with codecs.open(csv_file, 'rb', encoding="utf-8") as csv: csv_reader = DictReader(csv) …
1
vote
1 answer

How to use azure cognitive search ? Can we use for global filteron table with pagination and sorting?

I am trying to return all the records that match my searchtext.So far I have only seen examples where we need to specify field name but I want return records if any of the field contains the searchtext, without specifying any field name. And I got…
1
vote
1 answer

Request Disallowed By Policy

I am following the steps mentioned in this exercise on Microsoft Azure, given the exercise link below: Azure Developer League: Secure Azure Kubernetes Cluster I am stuck at the below code. When I run this code in the azure cloud shell(sandbox), as…
1
vote
1 answer

if condition in terraform in count

I am adding autoscale settings in the Azure cosmosdb database, My problem is not all our db requires autoscale only a selection of database require autoscalse rest are manual. I will not be able to specify the autoscalse block also the throughout in…
1
vote
1 answer

CosmoDB: No connection could be made because the target machine actively refused it. [::1]:10255

I'm unable to connect to my local CosmoDb instance. I'm currently configuring a new PC, the CosmoDB version and my solution are all currently with the same configuration as my old PC, but issue only exists on new PC. Here's is my connection string…
1
vote
0 answers

How start azure-cosmosdb-emulator in Docker with the parameter EnableMongoDbEndpoint=3.6

I am trying to run my azure-cosmosdb-emulator container inside docker which I was able to do it successfully. I have followed the steps mentioned in the link Here But, I want to start the emulator with the option EnableMongoDbEndpoint=3.6. The above…
techrhl
  • 434
  • 8
  • 19
1
vote
1 answer

Has anyone been able to use ttl with a date field on cosmos mongodb?

Been tinkering with cosmos for a few days now. It says the TTL works the same as mongos does but clearly it doesn't. It works fine with an int32. But it disregards the date completely. For reference I have the index setup on the "_ts" field and have…
Batman
  • 25
  • 2
1
vote
1 answer

How do I get N random documents from Cosmos DB using the MongoDB API?

I'm using azure cosmos DB acting as MongoDB version 4.0.0. I need to get N random documents from Azure Cosmos DB using the MongoDB API. I've tried using the $sample operator but it is giving me documents in the same order each time I…
1
vote
1 answer

Error using mongosh give error MongoBulkWriteError

I connect Mongodb of COsmoDB , version 3.6., below the comand: mongosh.exe url:10255 -u user -p pawss --tls --sslAllowInvalidCertificates@echo on then use o comand of insert show error: db.xxxxxxx.insert({({"num_id":NumberLong(2), give error: .…
Paulo
  • 69
  • 7
1
vote
1 answer

In Azure CosmosDB - disable the Data Explorer to user

In Azure Portal to user - how to disable the Data Explorer in Azure Cosmos DB service.
Kotha Ramesh Babu
  • 355
  • 1
  • 4
  • 10
1
vote
1 answer

Azure Cosmos DB MongoDB API 4.0 transaction feature not working with `spring-boot-starter-data-mongodb`

I have the cosmos mongodb server 4.0 in placed and also have MongoTransactionManager bean setup and applied @TransactionalOn the method in my poc like below: @Configuration class Config extends AbstractMongoConfiguration { @Bean …
FeeLGooD
  • 386
  • 4
  • 18
1
vote
1 answer

using fiware orion with azure cosmos db mongo api

We are currently using fiware Orion with Mongo DB on a docker container in a Kubernetes cluster and everything works fine, however as soon as I am trying to use it with Azure CosmosDB mongo API things fall apart. Below is the yaml apiVersion:…
1
vote
0 answers

Azure Cosmos DB MongoDB api datetime format

I use azure Cosmos DB with MongoDB api in my .net web api project. I created entity Log and repository public class Log : EntityBase { public string LogId { get; private set; } public string Message { get; private set; } public LogTypes…
piotrB
  • 145
  • 1
  • 1
  • 11
1
vote
1 answer

The aggregation pipeline is not enabled for this account

I try to execute a mongoDB aggregation pipeline against Azure Cosmos DB API for MongoDB via a Node.js application. I use the mongodb package with version 3.6.2 to connect to the cloud ressource. While the pipeline runs without any error in the Azure…
sschmeck
  • 7,233
  • 4
  • 40
  • 67
1
vote
0 answers

BulkWrite to Collection causes Timeout error but works when writing to empty test Collection

tl/dr; Using bulkWrite to batch replaceOne operations to Azure CosmosDB with MongoAPI with upsert:true. Works correctly on empty test collection but causes Time Out on intended collection. Intended collection already has ~7300 pieces of data. Why do…