Implement Server-Side Programming in Azure Cosmos DB
In this lab, you'll practice writing server-side code in JavaScript that you can execute server-side in Azure Cosmos DB. When you're finished with this lab, you'll have experience authoring and running stored procedures and user-defined functions within Azure Cosmos DB using the Data Explorer.
Terms and conditions apply.
Lab info
Lab author
Challenge
Access the Azure Cosmos DB Data Explorer
You'll navigate the Azure Portal and access the Data Explorer for an existing Azure Cosmos DB account.
Challenge
Author a New Stored Procedure
You'll create a new stored procedure that generates an example document, and then stores the document in your container.
Challenge
Execute a Stored Procedure
You'll execute an existing stored procedure using various input parameters.
Challenge
Author a New User-defined Function
You'll write a new user-defined function that converts a stored date into a human-readable string for queries.
Challenge
Utilize a User-defined Function in a Query
You'll leverage an existing user-defined function in a SQL query.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
Recommended prerequisites
- Azure Resource Groups
- JavaScript
- SQL