# From Local Development to CI Workflows with the Azure Cosmos DB Emulator

DevFeed: [From Local Development to CI Workflows with the Azure Cosmos DB Emulator](<https://devfeed.tech/articles/from-local-development-to-ci-workflows-with-the-azure-cosmos-db-emulator-97831.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/cosmosdb/from-local-development-to-ci-workflows-with-the-azure-cosmos-db-emulator/>)

Author: Jay Gordon

Published: 2026-10-23T12:33:30Z

Content type: tutorial

Language: en

Sources: [Azure Cosmos DB Blog](<https://devfeed.tech/sources/azure-cosmos-db-blog.md>)

Topics: [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Ollama](<https://devfeed.tech/topics/ollama.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [application](<https://devfeed.tech/tags/application.md>), [azure](<https://devfeed.tech/tags/azure.md>), [azure-cosmos-db](<https://devfeed.tech/tags/azure-cosmos-db.md>), [azure-cosmos-db-for-nosql](<https://devfeed.tech/tags/azure-cosmos-db-for-nosql.md>), [change](<https://devfeed.tech/tags/change.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cosmos](<https://devfeed.tech/tags/cosmos.md>), [database](<https://devfeed.tech/tags/database.md>), [develop](<https://devfeed.tech/tags/develop.md>), [development](<https://devfeed.tech/tags/development.md>), [docker](<https://devfeed.tech/tags/docker.md>), [emulator](<https://devfeed.tech/tags/emulator.md>), [feature](<https://devfeed.tech/tags/feature.md>), [first](<https://devfeed.tech/tags/first.md>), [http](<https://devfeed.tech/tags/http.md>), [isn-t](<https://devfeed.tech/tags/isn-t.md>), [know](<https://devfeed.tech/tags/know.md>), [lets](<https://devfeed.tech/tags/lets.md>), [local](<https://devfeed.tech/tags/local.md>), [with](<https://devfeed.tech/tags/with.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

## AI overview

The walkthrough shows how to test a database-backed change end to end with the Azure Cosmos DB Emulator in Docker and carry the same checks into GitHub Actions. In its FleetCharge example, a feed endpoint upserts a depot's current dispatch snapshot; the application reads it by document ID and partition key, and a live test verifies that the same question changes from BAY-2 / dispatch-001 to BAY-7 / dispatch-007 while PDX-02 remains unchanged. Local component tests use an isolated emulator and avoid Ollama; a separate live-model suite runs against local Ollama and checks generated answers and other CRUD behavior. The workflow requires Docker and Python 3.12; its lockfile targets Windows and Linux, not native macOS. Emulator integration tests do not establish production authorization or cloud performance, and the article says the emulator is an early regression check rather than proof that a deployed environment works.

## Source excerpt

When you change a database-backed feature, a successful HTTP response isn't enough. You need to know that the write reached storage, the application retrieved the updated record, and the next answer reflects it. The Azure Cosmos DB Emulator runs locally in Docker and lets us use the SDK we'll use in production. We'll develop against [...] The post From Local Development to CI Workflows with the Azure Cosmos DB Emulator appeared first on Azure Cosmos DB Blog.