Creating Data Store Resources in Azure
Tags: cloud
Published: 2022-07-18 07:39:00

As usual, to access Microsoft azure portal, browse to the URL (portal.azure.com), and then sign in with the account.

According to the official [Microsoft documentation](https://docs.microsoft.com/en-us/azure/cosmos-db/introduction) Azure Cosmos DB is a fully managed NoSQL database for modern app development, which supports fast, flexible development to achieve low latency and high availability.

**We would be Creating an Azure Cosmos DB account resource.**

In the Azure portal, search for Azure Cosmos DB in the **Search resources, services, and docs** text box then select Azure Cosmos DB.

![Azure Create](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l2i050eu3cmbu76uba0u.png) _Fig 1.0_

From the image above, label 1 or 2 can help us easily create our new resource.

On the next screen are various APIs provided by Microsoft.
![Azure API](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f76mm5jkkb3zcfqivkwb.png) which meets various requirements that would be specific to the Microsoft Tenant.

For this discuss, we would focus on the **Core(SQL)**, and it is worthy to note that  The API selection cannot be changed after account creation, click on **create** when you are sure that is what you want.

Fill in necessary **Resource Group and Account name ** for **capacity mode** we would be selecting **Severless** this [documentation](https://docs.microsoft.com/en-us/azure/cosmos-db/throughput-serverless) gives further clarification between provisioned Throughput and Severless.

![Azure Serverless](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o54qdho0gggp57u4p929.png)
**Severless** has an automated way to handle our app, and payment is **Event driven;** meaning payment is only done when the code runs, which helps users or organization to save cost. 

In the ** Backup Policy**, for the backup storage redundancy, we would be selecting **Geo-redundant backup storage**.

[Geo-redundant backup storage](https://docs.microsoft.com/en-us/azure/azure-sql/database/automated-backups-overview?view=azuresql&tabs=single-database) helps to protect against outages impacting backup storage in the primary region and allows you to restore your server to a different region in the event of a disaster.

Review other sections and options that meets your requirement then click on **create.** deployment should be available to you.

Azure portal allows us have access to work with various platforms as seen in the **image label 1**
![Azure page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c57b2rdxl9t0uau5iykq.png)

You can decide to create a container as seen in **image label 2**

A [Container](https://azure.microsoft.com/en-in/overview/what-is-a-container/#overview) bundles an application’s code together with the related configuration files and libraries and with the dependencies required for the app to run. This allows developers and IT pros to deploy applications seamlessly across environments.

Remember there are a whole lot we could do on our resource to meet our specified configuration. 
![Azure keys](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s1zgkqtjimakg2zrrfdd.png)

in the **settings ** section of our resource locate **keys** and save the URI, PRIMARY KEY, and PRIMARY CONNECTION STRING to your notepad.

**Create an Azure Storage account resource**

Search for **Storage accounts** on the Azure portal.

Follow through default procedures on creating any resource, and select relevant options as to your requirements.


![Storage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kwwhvhb1icpwkhjmx9b6.png) A success message of deployment should be available.

We just created an Azure resources that include an Azure Cosmos DB account and an Azure Storage account.