Skip to content

Reducing friction in using the shell with the emulator #74

@seesharprun

Description

@seesharprun

Today, the OOTB experience for the shell with the emulator is not ideal.

Ideally, you would:

  1. 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
  2. Get the emulator connection string from the documentation or the Data Explorer

    This connection string uses https scheme by default.

  3. Run the shell

    dnx cosmosdbshell --prerelease
  4. 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:

> connect --emulator

or

> connect "UseEmulator=true;"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions