As modern, cloud-based apps have evolved, they’ve required data storage to adapt with them. Services such as Azure Cosmos DB have risen to the challenge by providing a fully-managed, multi-model, globally-distributed NoSQL database.
In this hands-on lab scenario, our organization—Awesome Company—is developing a next-generation video game that will rely heavily on the Cloud. In order to achieve guaranteed performance around the globe, we’ve chosen Azure Cosmos DB as the data back end. We’ve already provisioned a Core (SQL) API account, a `Players` database, and a `Profiles` container. Now we will begin working with the player profile data.
Performing the actions of this lab will help you become familiar with how to create, modify, delete, and query data using the Core (SQL) API.
**Note**: Because the Azure Cosmos DB account is preprovisioned, it will take significant time for the lab to start up. Please be patient and make sure you have at least an hour of time for completion of the lab.
Successfully complete this lab by achieving the following learning objectives:
- Insert Player Profiles
Use Data Explorer within the Azure Cosmos DB account to create player profile documents. The suggestion is to create at least three, each having different teams.
- gamerId: 7777
- team: red
- gamerTag: Darth Delmar
- statusMessage: glhf 🙂
- isOnline: true
- Update Player Profiles
Use Data Explorer within the Azure Cosmos DB account to update player profile documents. One suggestion would be to place some of them on the same team. Leave some on another team for the other objectives.
- Query Player Profiles
Use Data Explorer within the Azure Cosmos DB account to query player profile documents. One suggestion would be to search for all that are on one team.
- Delete Player Profiles
Use Data Explorer within the Azure Cosmos DB account to delete player profile documents.