azure-cosmos-db-emulator-docker
azure-cosmos-db-emulator-docker copied to clipboard
VNext Support Pre-configuring Databases & Containers via Config File
Is your feature request related to a problem? Please describe. In production environment, all databases and containers - including RU throughput, partition-keys and unique-keys are pre-configured using Infrastructure as Code (IaC) . For local development using the Cosmos DB Emulator, only option is to write custom code that executes only on local machines to manually create and configure these resources. To align local development with real-world scenarios, I would like to propose a feature that allows pre-creating databases and containers via a configuration file.
Describe the solution you'd like I propose introducing support for defining database and container configurations via a Config.json file, similar to how the Azure Event Hub Emulator allows pre-configuration.
- Introduce a Config.json file that allows defining databases, containers, RU settings, partition keys, and unique keys, TTL, etc...
- Allow the emulator to read this file at startup and automatically create the specified resources.
Describe alternatives you've considered Alternatively it could be a python script that emulator executes at startup
Additional context N/A