Provision a Cosmos DB Instance in Azure

1.5 hours
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we will learn how to provision and configure a Cosmos DB instance in the Azure portal.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Cosmos DB Instance in the Azure Portal
  1. In the Azure portal, navigate to the Azure Cosmos DB service.
  2. Add a new Cosmos DB account with the following settings:
    • API: Core (SQL)
    • Apply Free Tier Discount: Do Not Apply
    • Location: (US) West US
    • Geo-Redundancy: Enabled
    • Multi-region Writes: Disabled
    • Disable the Free Tier Option
Configure Cosmos DB
  1. In the Azure Cosmos DB dashboard, select Replicate data globally, and add the South Central US region.
  2. Set the default consistency to Eventual.
  3. Create a new .Net "Items" container.
  4. Set the indexing policy of the new container to "none".
  5. Configure an alert with the following parameters:
    • Condition: Whenever the Provision Throughput is less than 50
    • Alert rule name: Provisioned Throughput Alert
    • Severity: 1

Additional Resources

Scenario

Your company has asked you to provision and configure a Cosmos DB instance running SQL API. The solution must meet the following requirements:

  • It must have eventual consistency.
  • Multiple region geo-redundancy is required.
  • A Provision Throughput alert must be configured for at least 50.

Instructions

Log in to the live environment with the provided Azure labs credentials and use the Azure portal to create a Comsos DB instance with SQL API and US Central US as the location. You should configure East US 2, Central US, and West US for replication and change the default consistency to Eventual.

<b> NOTE: Choose Do Not Apply to the "Apply Free Tier Discount" option.</b>

- Note: Both provisioning and global replication can take quite a few minutes to provision

Next you should create a .Net "Items" container and set the indexing policty of the container to lazy. Finally, create an alert to trigger whenever the Provisioned Throughput is less than 50 with Severity 1.

For detailed instructions on how to complete these tasks, expand each learning objective below, or click the Guide tab above the video player.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!