DocumentDB for VS Code

Learn MoreBack to Learn More Index


Azure CosmosDB for MongoDB (RU) Service Discovery Plugin

The Azure CosmosDB for MongoDB (RU) plugin is available as part of the Service Discovery feature in DocumentDB for VS Code. This plugin helps you find and connect to Azure Cosmos DB accounts provisioned with Request Units (RU) for the MongoDB API by handling authentication, resource discovery, and connection creation from inside the extension.

How to Access

You can access this plugin in two ways:

Service Discovery Activation

How It Works

When you use the Azure CosmosDB for MongoDB (RU) plugin, the extension performs the following steps:

  1. Authentication: The plugin uses your Azure credentials available in VS Code. If needed, it will prompt you to sign in via the standard Azure sign-in flows.

  2. Subscription Discovery: The plugin lists subscriptions available to your account so you can pick where to search for resources.

  3. Account Discovery: The provider queries Azure using the CosmosDB Management Client and filters results by the MongoDB “kind” for RU-based accounts. This ensures the list contains accounts that support the MongoDB API under RU provisioning.

  4. Connection Options:

    • Expand an account entry to view databases and connection options.
    • Save an account to your DocumentDB Connections list using the context menu or the save icon next to its name.
    • When connecting or saving, the extension will extract credentials or connection details from Azure where available. If multiple authentication methods are supported, you will be prompted to choose one.

Additional Notes

Feedback and Contributions

If you have suggestions for improving this provider or would like to add support for additional resource types, please join the discussion board and share your feedback.