Search code examples
azurelocalazure-cosmosdb

what is the username and password for the cosmos db emulator


I try to import a bunch of JSON files into cosmos db emulator, so localhost. Ik try to do this using the DocumentDB Data Migration Tool. Before anyone says that the tool is not working for cosmos db. According to Microsoft it should work: https://learn.microsoft.com/en-us/azure/cosmos-db/import-data

But my problem is I can't connect to my local emulator. I tried Googling, but I can't find a right connection string for the tool to work. Any one any idea what the connection string for local emulator is? Or the username and password?


Solution

  • Thanks to @Peter B!

    Account name: localhost:<port>
    Account key: C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
    

    Found at: https://learn.microsoft.com/en-us/azure/cosmos-db/local-emulator