cosmos

Cosmos DB Account

DatabasesAzure
General

General information about the service.

Description

Globally distributed, multi-model database service.

Namespace and Entity

Microsoft.DocumentDB/databaseAccounts

Chat

Powered by AI

Talk to this service to learn more about it.

Suggested questions:

Naming

The conventions, rules, and restrictions for naming this service.

Naming Convention

cosmos-

Length

3-44

Valid Characters

Alphanumerics, hyphens, underscores.

Scope

resource group

Code

Deploy your infrastructure as code using your preferred tooling.

Official DocumentationTerraform
terraform
1resource "azurerm_cosmosdb_account" "main" {
2 name = "cosmos-${var.project}-${var.environment}"
3 location = azurerm_resource_group.main.location
4 resource_group_name = azurerm_resource_group.main.name
5 offer_type = "Standard"
6 kind = "GlobalDocumentDB"
7
8 enable_automatic_failover = true
9
10 consistency_policy {
11 consistency_level = "Session"
12 max_interval_in_seconds = 5
13 max_staleness_prefix = 100
14 }
15
16 geo_location {
17 location = azurerm_resource_group.main.location
18 failover_priority = 0
19 }
20
21 geo_location {
22 location = "westeurope"
23 failover_priority = 1
24 }
25
26 backup {
27 type = "Periodic"
28 interval_in_minutes = 240
29 retention_in_hours = 8
30 }
31
32 tags = var.tags
33}
Utilities

Utilities to support app deployment or configuration.

Private Endpoints

Details to successfully deploy private endpoints on Azure.

Sub-Resource Names

SqlMongoDBCassandraGremlinTable

Private DNS Zone Names

privatelink.documents.azure.comprivatelink.mongo.cosmos.azure.com

Public DNS Zone Forwarders

documents.azure.com