/DataPath=PREFERRED_LOCATION
as the command-line parameter. The data created in one version of the Azure Cosmos emulator is not guaranteed to be accessible when using a different version. If you need to persist your data for the long term, it is recommended that you store that data in an Azure Cosmos account, instead of the Azure Cosmos emulator.C:Program FilesAzure Cosmos DB Emulator
location by default. To start the Azure Cosmos emulator on Windows, select the Start button or press the Windows key. Begin typing Azure Cosmos Emulator, and select the emulator from the list of applications.https://localhost:8081/_explorer/index.html
URL.https://localhost:8081/_explorer/index.html
. If you close the explorer and would like to reopen it later, you can either open the URL in your browser or launch it from the Azure Cosmos emulator in the Windows Tray Icon as shown below.Dockerfile
and more information. Currently the emulator does not work on Docker for Oracle Linux. Use the following instructions to run the emulator on Docker for Windows:docker run
command, if you see a port conflict error (that is if the specified port is already in use), pass a custom port by altering the port numbers. For example, you can change the '-p 8081:8081' parameter to '-p 443:8081'https://<emulator endpoint provided in response>/_explorer/index.html
ipconfig.exe
instead of localhost
./usr/local/share/ca-certificates/
./etc/ssl/certs/
folder.localhost
.CosmosClientOptions.HttpClientFactory
:CosmosClientOptions.HttpClientFactory
:package.json
file to set the NODE_TLS_REJECT_UNAUTHORIZED
while starting the application:/AllowNetworkAccess
option at the command-line, which also requires that you specify /Key=key_string
or /KeyFile=file_name
. You can use /GenKeyFile=file_name
to generate a file with a random key upfront. Then you can pass that to /KeyFile=file_name
or /Key=contents_of_file
.C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw
. For more information about /Key option, see Command-line tool reference.AZURE_COSMOS_EMULATOR_CASSANDRA_ENDPOINT=true
.AZURE_COSMOS_EMULATOR_GREMLIN_ENDPOINT=true