/addressbook

Globally distributed address book built on CosmosDb & Azure Search

Primary LanguageC#

Contacts

Azure CLI:

resourceGroupName='contacts'
location='northeurope'

# The Azure Cosmos account name must be globally unique
accountName='rdt-contacts-sql'

# Create a resource group
az group create \
    --name $resourceGroupName \
    --location $location

# Create a SQL API Cosmos DB account with session consistency and multi-master enabled
az cosmosdb create \
    --resource-group $resourceGroupName \
    --name $accountName \
    --kind GlobalDocumentDB \
    --locations regionName="North Europe" failoverPriority=0 --locations regionName="West Europe" failoverPriority=1 \
    --default-consistency-level "Session" \
    --enable-multiple-write-locations true

Documents