Creating a Cosmos DB

You can create a Cosmos DB using the Azure portal, PowerShell, CLI, and ARM templates. In this demonstration, we are going to create a Cosmos DB server, database, and container from the Azure portal. Therefore, you have to take the following steps:

  1. Navigate to the Azure portal by opening https://portal.azure.com.
  2. Click Create a resource, type Azure Cosmos DB in the search bar and create a new database server.
  3. Add the following values:
    • Subscription: Pick a subscription.
    • Resource group: Create a new one and call it PacktCosmosResourceGroup.
    • Account name: packtsqlapi.
    • API: Core (SQL).
    • Location: East US.
    • Geo-Redundancy: Disable.
    • Multi-region Writes: Disable.
    • Availability ZonesDisable.
  4. Click Review + create and then ...

Get Microsoft Azure Architect Technologies: Exam Guide AZ-300 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.