Today, the OOTB experience for the shell with the emulator is not ideal.
Ideally, you would:
-
Pull and run the emulator:
docker run --detach --publish 8081:8081 --publish 8080:8080 --publish 1234:1234 mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview
-
Get the emulator connection string from the documentation or the Data Explorer
This connection string uses https scheme by default.
-
Run the shell
dnx cosmosdbshell --prerelease
-
Connect to the emulator endpoint
connect "<emulator-connection-string>"
This fails OOTB because the shell is attempting to use SSL to connect to the emulator which requires extra steps. You can either:
- Install the certificates
- Update the connection string to use the
http scheme
What would be great if there was a flag or shorthand for connecting to the emulator which already has this baked in like:
or
> connect "UseEmulator=true;"
Today, the OOTB experience for the shell with the emulator is not ideal.
Ideally, you would:
Pull and run the emulator:
Get the emulator connection string from the documentation or the Data Explorer
Run the shell
Connect to the emulator endpoint
connect "<emulator-connection-string>"This fails OOTB because the shell is attempting to use SSL to connect to the emulator which requires extra steps. You can either:
httpschemeWhat would be great if there was a flag or shorthand for connecting to the emulator which already has this baked in like:
> connect --emulatoror