Posted by Truong on 19th Apr 2021
Create an Azure Cosmos DB account in the portal
- 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.
- On the Azure portal menu, select Create a resource.
- Select Databases, and then select Azure Cosmos DB. The Create Azure Cosmos DB Account pane appears.
- Select Create.
If you do not see Azure Cosmos DB in the list of databases, you can use the search box to search for it.
- On the Basics tab, enter the following values for each setting.
TABLE 1 Setting Value Description Project Details Subscription Concierge Subscription Select 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 Group learn-ba21cd16-4183-491b-b9b5-b20edc638a75 Here you would either create a new resource group, or select an existing one in your subscription. Instance Details Account Name Enter a unique name Enter 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.API Core (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.Location Select the region closest to you from the following list Select the location where the database should be located. Capacity mode Provisioned throughput This is the default, and there is no need to change it. Apply Free Tier Discount Do Not Apply The free tier is not necessary for this module. Account Type Non-Production This module is for learning, so your database is not meant for production use. Geo-Redundancy Disable This 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 Writes Enable This 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
- Select Review + create.
Prices in images are for example purposes only.
- After the settings are validated, select Create to create the account.
- The account creation takes a few minutes. Wait for the portal to display the notification that the deployment succeeded, and select the notification.
- In the notification window, select Go to resource.
The portal displays the Congratulations! Your Azure Cosmos DB account was created pane.