Posted by Truong on 19th Apr 2021

Create an Azure Cosmos DB account in the portal

  1. Sign into the Azure portal for sandbox using the same account you activated the sandbox with.

    Important

    Log in to the Azure portal using the link at the beginning of this exercise to ensure you are connected to the sandbox, which provides access to a Concierge Subscription.

  2. On the Azure portal menu, select Create a resource.

    Create a resource from Azure portal menu

  3. Select Databases, and then select Azure Cosmos DB. The Create Azure Cosmos DB Account pane appears.
  4. Select Create.

    Select Azure Cosmos DB

    If you do not see Azure Cosmos DB in the list of databases, you can use the search box to search for it.

  5. On the Basics tab, enter the following values for each setting.
    TABLE 1
    SettingValueDescription
    Project Details
    SubscriptionConcierge SubscriptionSelect the Concierge Subscription. If you do not see the Concierge Subscription listed, you have multiple tenants enabled on your subscription, and you need to change tenants. To do so, login again using the following portal link: Azure portal for sandbox.
    Resource Grouplearn-ba21cd16-4183-491b-b9b5-b20edc638a75Here you would either create a new resource group, or select an existing one in your subscription.
    Instance Details
    Account NameEnter a unique nameEnter a unique name to identify this Azure Cosmos DB account. Because documents.azure.com is appended to the ID that you provide to create your URI, use a unique but identifiable ID. You will use this ID to complete the exercises later in this module.

    The ID can contain only lowercase letters, numbers, and the hyphen (-) character, and it must contain 3 to 31 characters.
    APICore (SQL)The API determines the type of account to create. Azure Cosmos DB provides five APIs to suit the needs of your application: SQL (relational database), Gremlin (graph database), MongoDB (document database), Azure Table, and Cassandra, each of which currently requires a separate account.

    Select Core (SQL) because in this module you are creating a document database that is queryable using SQL syntax and accessible with the SQL API.
    LocationSelect the region closest to you from the following listSelect the location where the database should be located.
    Capacity modeProvisioned throughputThis is the default, and there is no need to change it.
    Apply Free Tier DiscountDo Not ApplyThe free tier is not necessary for this module.
    Account TypeNon-ProductionThis module is for learning, so your database is not meant for production use.
    Geo-RedundancyDisableThis setting creates a replicated version of your database in a second (paired) region. Leave this set to disabled for now, as the database can be replicated later.
    Multi-region WritesEnableThis setting enables you to write to multiple regions at the same time.

    The free sandbox allows you to create resources in a subset of the Azure global regions. Select a region from the following list when you create resources:

    • West US 2
    • South Central US
    • Central US
    • East US
    • West Europe
    • Southeast Asia
    • Japan East
    • Brazil South
    • Australia Southeast
    • Central India
  6. Select Review + create.

    The new account page for Azure Cosmos DB

    Prices in images are for example purposes only.

  7. After the settings are validated, select Create to create the account.
  8. The account creation takes a few minutes. Wait for the portal to display the notification that the deployment succeeded, and select the notification.

    Notification alert

  9. In the notification window, select Go to resource.

    Go to resource

    The portal displays the Congratulations! Your Azure Cosmos DB account was created pane.

    The Azure portal Notifications pane