Questions tagged [azure-cosmosdb-emulator]
41 questions
12
votes
2 answers
Azure Cosmos DB Emulator Linux image does not start (Error: The evaluation period has expired.)
With the following image mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest when attempting to start a container either via:
Docker Desktop (Windows)
Or, via the following CLI command (Windows):
docker run --name azure-cosmosdb-emulator…

Aaron Zhong
- 921
- 8
- 22
6
votes
1 answer
Cosmos DB Emulator for Linux Docker “This is an evaluation version. There are [164] days left in the evaluation period”
I’m running Cosmos DB Emulator for Linux Docker image.
I’ve noticed the following message when the container starts running
“This is an evaluation version. There are [164] days left in the evaluation period”
Does this mean that after 164 days Cosmos…

YuriK
- 207
- 2
- 4
4
votes
0 answers
Running CosmosDB Emulator in Azure Pipeline is very slow
For integration tests on a Azure Devops Pipeline we start the CosmosDbEmulator with the following task (just before dotnet test).
- task: PowerShell@2
displayName: "Starting Cosmos Emulator for Integration Tests"
inputs:
targetType:…

Fabian Bigler
- 10,403
- 6
- 47
- 70
4
votes
1 answer
How to check if the Cosmos DB emulator in a Docker container is done booting?
We use the Cosmos DB emulator in a Docker container. The container is started together with the test. Sometimes during the first test, there is a read timeout when connecting and the tests are aborted. Is there any check we can run before the tests…

Horcrux7
- 23,758
- 21
- 98
- 156
3
votes
0 answers
Documents not showing in Cosmos Emulator
I'm using the Cosmos Emulator (v. 2.11.13.0) to develop locally.
My program works fine with the emulator, but the stored documents don't show up in the document explorer:
I can see the documents just fine using Microsoft Azure Storage Explorer (v.…

Mikkel R. Lund
- 2,336
- 1
- 31
- 44
2
votes
1 answer
Not able to setup Hierarchical partition keys on the portal of Azure Cosmos db emulator
Has anybody been able to setup hierarchical partition keys on Azure cosmos db emulator. I tried following this post from Microsoft -
https://learn.microsoft.com/en-us/azure/cosmos-db/hierarchical-partition-keys?tabs=net-v3%2Cbicep
This is what I…

Sumchans
- 3,088
- 6
- 32
- 59
2
votes
0 answers
Azure CosmosDB emulator unstable when using it for api tests
We are using docker-compose to run some api tests. In the background, the API performs CRUD operations on a cosmsodb. The test run is supposed to run without creating and using a real cosmosdb, so i use the cosmosdb emulator as a docker…

Woozar
- 1,000
- 2
- 11
- 35
2
votes
0 answers
CosmosDB Emulator - Losing data after deleting Docker Container
I am building a CosmosDB Emulator container via a docker-compose.yml file.
version: '3.4'
services:
cosmosdb:
container_name: cosmosdb
image: "mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest"
tty: true
mem_limit: 2G
…

anilam
- 36
- 5
2
votes
0 answers
Azure CosmosDB Emulator Gremlin Enabled on Docker
I have been battling this for a while now.
Scenario
We are using Cosmos SQL API and Cosmos Graph (Gremlin) in our project. For a long time we have been forced to use Azure resources when developing for the graph databases.
I whish to get rid of this…

Dan Johansson
- 21
- 1
2
votes
1 answer
How to pass multiple parameters when starting Azure Cosmos DB Emulator?
I wanted to test out the Patch API, I followed the docs on the github to test Patch API with Emulator,
C:\Program Files\Azure Cosmos DB Emulator> .\CosmosDB.Emulator.exe /EnablePreview
which works fine, however when i start inserting items it…

azure 360
- 23
- 4
2
votes
0 answers
CosmosDB Emulator - Create/Delete Databases and Containers using some scripting
I would like to be able to Create/Delete Databases and Containers from my CosmosDB Emulator using some scripting type. Sometimes I need to do a clean slate, and it's painful to do it manually.
Do you have any ideas?
Thanks in advance for the help

borgesgj
- 35
- 2
2
votes
1 answer
How to turn of SSL/TLS validation with property or VM option with java?
I am trying to connect to a local cosmosdb runing the cosmosdb emulator in a windows VM. I have successfully created the port forwarding and can call it from my nodejs script. However I need to get this working with java and there are no docs on…

slipperypete
- 5,358
- 17
- 59
- 99
1
vote
1 answer
How to connect to CosmosDB emulator running locally on docker-compose
I'm trying to run a linux container for the CosmosDB emulator via docker-compose, but I can't connect to it.
I have the following docker-compose file:
version: '3.4'
services:
local-cosmosdb:
image:…

ML72
- 145
- 1
- 8
1
vote
1 answer
Azure: Function App CosmosdbTrigger local development
I'm currently working on function apps and I want to use CosmosDBTrigger.
Here are my specs:
dotnet --version > 6.0.401
func --version > 4.0.4736
CosmosDB Emulator > azure-cosmosdb-emulator-2.14.7-c041c584
Windows 10 Enterprise
My issue:
The…

Hoppas86
- 13
- 3
1
vote
1 answer
Speed up the Azure Cosmos DB Emulator Task Group in Azure Devops Pipeline
I have followed the guide here and I am using the Azure Cosmos DB Emulator task group in an Azure DevOps pipeline to successfully run my integration tests.
The problem comes when on each run it takes approximately 20 mins to download the emulator.…

Mjsc3099
- 11
- 1