Introduction to Cosmos DB using ASP.NET Core MVC
2 h 10 m
Lab Overview
In this lab, you will use Visual Studio and ASP.NET to learn how to use Cosmos DB as a backend for an MVC application. You will learn how to programmatically read and write data, create and call a user-defined functions as well as understand management capabilities such as users and permissions, monitoring and scalability options.

Related Learning Path(s):
Building Web Apps on Azure
Designing and Implementing Cosmos DB
AZ - 203 Developing Solutions for Microsoft Azure
General Azure Architect Training
  • Experience with ASP.NET and Visual Studio
In this exercise, you will create an Azure Cosmos DB account configured to use the SQL (DocumentDB) API. Then you will create a Database and Collection, within which you will add a new JSON document to.
In this exercise, you will build a web front end that reads and writes data in your Cosmo DB instance.
In this exercise, you will extend the web application created in the previous exercise to add capabilities for retrieving data from Azure Cosmos DB.
In this exercise, you will enhance the application created in the previous exercises. You will add a Stored Procedure, User-Defined Function, and a Trigger to Cosmos DB and the application. Additionally, you will use the attachment capabilities of Azure Cosmos DB documents.

In this exercise, you will add users to your Azure Cosmos DB Account via the Azure Portal. You will also learn how you can configure permissions and how to manage them within an application.

In this exercise, you will see how you can review the performance and usage metrics of your Azure Cosmos DB Account. You will then see how to customize the performance metrics and how you can set up alerts. You will also see how you can scale your Azure Cosmos DB Account by changing the pricing tier of a Collection.
Real-Time Lab
Not Registered?
Create Account
Already Registered?
What are Labs?

Labs provide a live environment to get hands-on experience using the same tools and services in the real world.

Learn More