simple online nosql database database with REST API and MongoDB queries
  • Features
  • Docs
  • Blog
  • Templates
  • Pricing
  • Contact
  • Sign Up
  • Log In

Blog

 The latest news and articles about restdb.io  

Database templates!
Don't forget to visit our template catalog! It's the fastest way to get up and running with a restdb.io database. View templates »

Announcing Azure Cosmos DB support for restdb.io

by Jon Erik Solheim
|
Howto|Features|
  • Share on Facebook
  • Tweet
  • Add to Pocket
  • Share on LinkedIn
  • Send email

restdb love azure

As you might know, restdb.io has support for MongoDB compatible querying using a simple REST based interface. Developers love that complex database specific details are hidden and simplified in one coherent developer experience.

However, in many cases, there are good reasons for developers and data owners to have more control of and access to their own database instance.

This blog post shows how you can connect restdb.io to an Azure Cosmos DB instance.

Azure Cosmos DB is Microsofts globally distributed, multi-model database. With the click of a button, Azure Cosmos DB enables you to elastically and independently scale throughput and storage across any number of Azure's geographic regions.

Creating a new Azure Cosmos DB instance

If you have an Azure account already, just navigate to the Cosmos DB section and start creating your new Cosmos DB instance.

create a new cosmos db

Make sure that you select MongoDB in the API select dropdown. Then select the region that suits your needs, e.g. choose North Europe. Click the "Create" button and a new Cosmos DB instance will be provisioned for your account. The database instance is now ready for external connections and data traffic.

Connect your restdb.io database to Azure Cosmos DB

Copy the connection string from Cosmos DB into your RestDB account. connection string from cosmos db

Navigate to the "Manage" tab in the settings of your restdb database and paste the connection string from your Cosmos DB into the "External MongoDB connection" text area. mongodb connection string in restdb

Note that, for some reason, unless you "pre-create" the collections you need in the CosmosDB admin, you might get error messages displayed in the restdb.io admin UI. Typical error that show up is: The index path corresponding to the specified order-by item is excluded / The order by query does not have a corresponding composite index that it can be served from. Read more in the Azure CosmosDB Documentation.

Create some test data

To make sure that we have a valid connection to our Cosmos DB we've used the random data generator to create some random data in the contacts collection. some random data

If we navigate to the Azure Cosmos DB Data explorer view we will see the same data stored in our Cosmos DB instance. You can now use the restdb.io UI to manage these data and the REST API for programmatic access. data explorer

Security settings

Azure lets you protect your database API in various ways. Add a secure firewall or even a virtual private network, it's all there.

azure cosmos db security settings

Conclusion

Azure Cosmos DB is an enterprise grade database engine which delivers unprecedented scale and flexibility. Together with restdb.io's secure REST APIs and the user friendly data admin client, you have a powerful combination for rapid and effortless serverless development.

Resources

  • https://azure.microsoft.com
  • https://azure.microsoft.com/en-us/services/cosmos-db/
  • https://docs.microsoft.com/en-us/azure/cosmos-db/create-mongodb-nodejs
  • https://restdb.io/docs/external-mongodb
  • Share on Facebook
  • Tweet
  • Add to Pocket
  • Share on LinkedIn
  • Send email

All Posts


Search

Topics

  • API
  • Authentication
  • Case study
  • Features
  • Howto
  • Integrations
  • Newsletter
  • Productivity
  • Prototyping
  • Tutorials
  • User

restdb.io is a fast and simple NoSQL cloud database service. With restdb.io you get schema, relations, REST API and an efficient multi-user admin UI for working with data.

Our customers use it for backends, business databases, API-first CMS, data collection and much more. It is easy to get started with the free development plan.

Start Building »

  • Site Links
  • Home Page
  • About Us
  • Contact
  • Blog
  • Templates Catalog
  • Cloud Service
  • Features
  • Pricing
  • Terms & Conditions
  • Privacy Policy
  • Sign Up »
  • Documentation
  • Overview
  • Getting Started
  • Coding against the API
  • Utils
  • Security and Admin
© 2025 restdb.io