azureazure-cosmosdbazure-emulatornosql

How can we import data to azure documentdb


Is there a way to import data(collection) to azure document db from locally generated document db collection. We will generate data locally and want to push it to azure


Solution

  • If you want to migrate data between the Azure Cosmos DB Emulator and the Azure Cosmos DB service,from the Azure Cosmos DB Emulator document, we could know that we could use Azure DocumentDB Data Migration Tool to migrate data between the Azure Cosmos DB Emulator and the Azure Cosmos DB service.

    You can use existing tools like Azure DocumentDB Studio to connect to the Azure Cosmos DB Emulator. You can also migrate data between the Azure Cosmos DB Emulator and the Azure Cosmos DB service using the Azure Cosmos DB Data Migration Tool.

    More details about how to use DocumentDB Data Migration Tool, refer to the How to import data into Azure Cosmos DB with the DocumentDB API