Set up a database for ScalarDB/ScalarDL deployment on Azure
This guide explains how to set up a database for ScalarDB/ScalarDL deployment on Azure.
Azure Cosmos DB for NoSQL
Authentication method
When you use Cosmos DB for NoSQL, you must set COSMOS_DB_URI
and COSMOS_DB_KEY
in the ScalarDB/ScalarDL properties file as follows.
scalar.db.contact_points=<COSMOS_DB_URI>
scalar.db.password=<COSMOS_DB_KEY>
scalar.db.storage=cosmos
Please refer to the following document for more details on the properties for Cosmos DB for NoSQL.
Required configuration/steps
Create an Azure Cosmos DB account
You must create an Azure Cosmos DB account with the NoSQL (core) API. You must set the Capacity mode as Provisioned throughput when you create it. Please refer to the official document for more details.