Member-only story
Adventuring into the Cosmos — Trying out Azure Cosmos DB
Studying for AZ-204: Developing Solutions for Microsoft Azure
I’m scheduled to take the AZ-204 exam in the next couple of weeks so I’m currently playing around with the main resources covered to get some practice in the portal and also writing client code to use the resources.
Today I’m having a go at creating a NoSQL database in Cosmos and creating a client repository in C# to use the Cosmos DB as a document datastore for a simple Web API app. The API enables clients to store information about pens and ink in them. Being a pen geek I find this a really simple example data and functionality to play about with.
The GitHub repo for the WebAPI can be found here
Creating a Cosmos DB Account
Creating a Cosmos DB is really simple. Having just finished an MSc in Computer Science with the OU, I have a student account with Azure and get free credits, but there is a free tier of Cosmos DB so anybody can play around with it at no cost.
To create the Cosmos DB, I just went to the portal, searched for Cosmos and then clicked Create…