Provision an Azure Cosmos DB
In this IT Pro Challenge virtual lab, you will get hands-on experience implementing, configuring, and testing Microsoft Azure’s Cosmos DB. This lesson simulates a cloud migration strategy that a company may implement for moving on-premise web apps to the cloud. These skills are essential for an Azure administrator, architect, or engineer.
This hands-on lab provides an Azure administrator with an understanding of how to implement Microsoft Azure’s Cosmos DB. Cosmos DB is Microsoft’s globally distributed database service. It allows users to scale throughput and storage across geographies elastically and enables data access through several APIs, such as SQL, MongoDB, Cassandra, Tables, or Gremlin. You will gain the exposure required to understand how an on-premise web app that has database dependencies can be migrated to a serverless application cloud environment. These skills are essential for someone pursuing a career path as an Azure administrator, architect, or engineer.
Understand the scenario
You are a system administrator for a company that is migrating its primary web app from their on-premise data center to Microsoft Azure’s cloud. You need to configure an Azure Cosmos database that will be used by the web app. First, you will create a Cosmos DB account, and then you will define and populate the database. Finally, you will test the database using a test page provided within the web app.
Create an Azure Cosmos DB account:
Implementing Cosmos DB for your Azure environment can be completed in just a few simple steps. In this section, you will provision an Azure Cosmos DB account, create a new database, and create and configure a DB collection with a fixed storage capacity. These steps ensure you have the right resources provisioned, to then populate with your data.
Populate a Cosmos DB collection:
Test the connection to the Cosmos DB database from the web app:
To enable your web application to connect to the database, you need to provide it with the URI of the database and one of the access keys. You will become familiar with locating this information within the Azure portal and then using it to test your web app’s access to the database. For this lesson, you are provided a web application with a test page that will confirm the correct configuration.
Lab Summary Conclusion:
Migrating serverless applications to the cloud is a common strategy for business organizations nowadays. Microsoft’s Azure platform allows you to migrate your apps and configure a Cosmos DB that can elastically and independently scale across geographies to meet your organization's demands and applications. In this hands-on lab, you will learn the basic steps to provision, configure, and test a Cosmos DB that integrates with a web application. These skills are essential for someone pursuing a career as an Azure administrator, architect, or engineer.
Other Challenges in this series
- Guided Challenge - Provision an Azure SQL Server database
- Advanced Challenge - Can you Provision Relational Databases for a Web App?