Creating an Azure Cosmos database
From the Azure portal, you can open the page for your Azure Cosmos DB account, open Data Explorer, and from there, click on New Database to create a new database, and New Container to create a container within the database. Here, we’ll use the Azure CLI instead:
az cosmosdb sql database create --account-name <your cosmos account name> -n codebreaker -g rg-codebreaker-test --throughput 400
This command creates a database named codebreaker
in the existing account. Setting the throughput option with this command defines the scale of the database. Here, all containers within this database share the 400 RU/s throughput. 400 is the smallest value that can be set. Instead of supplying this value when creating the database, scaling can also be configured with every container. In case some containers should not take away scaling from other containers, configure the RU/s with every container – but here, the minimum value to be used...