Exercise: Create Azure Cosmos DB resources by using the Azure portal
In this exercise you learn how to perform the following actions in the Azure portal:
- Create an Azure Cosmos DB account
- Add a database and a container
- Add data to your database
- Clean up resources
Prerequisites
- An Azure account with an active subscription. If you don’t already have one, you can sign up for a free trial at https://azure.com/free.
Create an Azure Cosmos DB account
- Sign-in to the Azure portal.
- From the Azure portal navigation pane, select + Create a resource.
- Search for Azure Cosmos DB, then select Create/Azure Cosmos DB to get started.
- On the Which API best suits your workload? page, select Create in the Azure Cosmos DB for NoSQL box.
- In the Create Azure Cosmos DB Account – Azure Cosmos DB for NoSQL page, enter the basic settings for the new Azure Cosmos DB account.
- Subscription: Select the subscription you want to use.
- Resource Group: Select Create new, then enter az204-cosmos-rg.
- Account Name: Enter a unique name to identify your Azure Cosmos account. The name can only contain lowercase letters, numbers, and the hyphen (-) character. It must be between 3-31 characters in length.
- Availability Zones: Select Disable.
- Location: Use the location that is closest to your users to give them the fastest access to the data.
- Capacity mode: Select Serverless.
- Select Review + create.
- Review the account settings, and then select Create. It takes a few minutes to create the account. Wait for the portal page to display Your deployment is complete.
- Select Go to resource to go to the Azure Cosmos DB account page.