Welcome to the Azure CosmosDB Getting Started guide! This tutorial will walk you through the fundamental concepts and steps to get your first Cosmos DB cluster up and running.
Cosmos DB is a globally distributed, multi-model database service offered by Microsoft Azure. It supports multiple data models including Document, SQL, and Table, offering flexibility and scalability for a wide range of applications.
Cosmos DB is a serverless, multi-model database that allows you to build applications that are scalable and responsive, without worrying about the infrastructure. It provides a flexible database that can be easily used for a variety of different application needs.
You'll need an Azure account and a basic understanding of Azure. You also need a Azure account with basic permissions.
Create a Resource Group to hold all your Cosmos DB resources. This acts as a container for your database and related components.
Go to the Azure portal, navigate to your resource group, and click "Create."
In the Azure portal, navigate to your Resource Group, select Cosmos DB, and click "Create database."
Enter a database name and set the primary key type. Choose a suitable primary key type based on your data model needs.
Once your database is created, create a container. A container is a logical grouping of resources that allows you to organize and manage your Cosmos DB objects.
Now, create a document – the data you'll store in Cosmos DB.
Let's create a simple document – a JSON object representing a user.
```html
This is a sample user document.
Name: John Doe
Age: 30