Page cover

Database - Azure CosmosDB

Following are steps for Azure Cosmos DB deployment for integration with DecisionRules.

After navigating to Azure Cosmos DB, hit Create. Choose Azure DocumentDB (with MongoDB compatibility).

circle-info

From version 1.21.0, we recommend using the Azure DocumentDB (formerly vCore) type instead of RU-based type for new environments, following Microsoft’s own recommendation.

DocumentDB (with MongoDB Compatibility)

Azure DocumentDB (formerly vCore)

Assign your resource group, give the cluster a name, choose a location and choose the cluster tier and version if necessary.

Basic settings

Next go to the Networking tab and fill in the settings.

circle-exclamation

Create your private endpoint, making sure it shares the same virtual network as your future server container.

Networking settings and Private Endpoint

For the Global distribution, Encryption and Tags choose whatever fits your use-case. Review the account and create.

triangle-exclamation

RU-based

Assign your resource group, give the account a name, choose a location and choose the Serverless capacity mode.

circle-info

Serverless Capacity mode has much lower operating costs compared to the Provisioned Throughput option. If for whatever reason you decide to go with the Provisioned Throughput option anyways, make sure to set the limit to a minimum of 12000 RUs.

Basic settings

Set your Global Distributions settings if needed. Next go to the Networking tab and fill in the settings.

circle-exclamation

Create your private endpoint, making sure it shares the same virtual network as your future server container.

Networking settings and Private Endpoint

For the Backup Policy, Encryption and Tags choose whatever fits your use-case. Review the account and create.

Where to find a connection string

After the database account has been created, navigate to Settings / Connection strings. The connection string can be found under Primary/Secondary connection string.

triangle-exclamation

Last updated

Was this helpful?