1. Home
  2. Training Library
  3. Microsoft Azure
  4. Courses
  5. Introduction to Azure Storage Solutions

Azure CosmosDB DocumentDB Demo

The course is part of these learning paths

AZ-203 Exam Preparation: Developing Solutions for Microsoft Azure
course-steps 18 certification 1 lab-steps 7
Getting Started with Azure
course-steps 2 certification 1
Developing, Implementing and Managing Azure Infrastructure
course-steps 10 certification 7 lab-steps 2
more_horiz See 2 more
play-arrow
Start course
Overview
DifficultyIntermediate
Duration1h 13m
Students2126

Description

This course provides an introductory tour of Azure Storage Solutions such as its SQL offerings (SQL DB and third party offerings of MySQL), managed NoSQL databases (DocumentDB and MongoDB), managed Redis Cache service, Azure Backup (backup-as-a-service), Site Recovery (for handling disaster recovery) and StorSimple (a hybrid cloud storage solution).

Target Audience / Experience

  • This course is for developers or IT professionals looking for an introduction to Azure’s Storage Solutions.
  • Some familiarity with the Azure platform is helpful, but not required.

Learning Objectives

  • Understand what SQL DB is and how to get started using it
  • Learn the options offered by Azure for managed MySQL
  • Understand what DocumentDB and MongoDB are and how to get started using them
  • Learn what Redis Cache is and some cases of when you would use it
  • Get an understanding of what Azure Search provides
  • Learn how Azure Backup can solve common backup needs
  • Understand what role Site Recovery can play in disaster recovery
  • Learn how StorSimple can extend your on-premise storage capacity


Outline

  • Course Introduction
    • Overview
  • Azure SQL Database
    • What is Azure SQL Database?
    • Understanding the service tiers
    • Create a SQL Database
    • What is a Data Throughput Unit (DTU)?
    • Scaling Azure SQL
  • MySQL
    • Options for Using MySQL in Azure
  • Azure CosmosDB DocumentDB API
    • What is DocumentDB?
  • Azure CosmosDB MongoDB API
    • Options for Using MongoDB in Azure
    • How does DocumentDB compare to MongoDB?
  • Azure Redis Cache
    • What is Azure Redis Cache?
    • Common scenarios for using Redis Cache
    • Understanding the service tiers
    • How does Redis work?
    • Create and manage a Redis Cache
    • Scaling Azure Redis Cache
  • Azure Search
    • What is Azure Search?
    • Indexes and Search Features
    • How do you use the Search Service?
    • Create a Search Service and Index
  • Azure Backup
    • What is Azure Backup?
    • Backup Scenarios
    • Import/Export Service
    • What is the Import/Export Service?
    • Why would you use Import/Export?
  • Site Recovery
    • What is Site Recovery?
    • Workload recovery scenarios
  • StorSimple
    • What is StorSimple?
    • How does StorSimple work?
  • Course Summary
    • Conclusion and Wrap-Up

Transcript

Ok, so we’re back in the portal. Let’s create a DocumentDB. So let’s go to the new button. Search for DocumentDB. Ok as you can see, its been renamed. Let’s select Azure CosmosDB and click the Create button.
Ok, now we can enter the settings. Let me give a name to the DocumentDB
Now for the API I’ll choose DocumentDB from the drop down. I'll leave the subscription at the default, and choose to use an existing resource group. Leave the location as East US 2. Ok, check pin to dashboard and click create.
This will take only a few seconds, but I'll pause the video.
Ok, I’m back. The DocumentDB has been created and we are ready to explore what we can do.
So look at the overview similar to the databases, we’ve got the general information up at the top here but since we don’t have any collections yet – let’s add a collection.
Ok, I’ll add a name for a collection, then I’ll change the storage capacity here. Take it down to 400. Then I’ll add a partition key for the name. And then I’ll leave the database as the existing one I’ve got. It created that pretty quickly. Now I’ll click on the row in the Collections grid here to open the Data Explorer.
So currently items are empty, so let’s create a document. I’ll change the id to 1 and add a name field of Jason. Save that. Let me create another document and I’ll give it an id of 2 and give it a name field of haley and save it.
Ok, now you can see the list of names showing here and I can navigate between them.
Also notice the system generated fields that have shown up on the documents.
If click the ellipses on the items node here in the tree, you can see there are additional things I can do. However, since this is just an overview, I'm not going to get into creating the stored procedures, user defined functions or triggers. So let’s go back to the overview.
Ok, back to the menu. Replicate data globally. This is where I could select other data centers to replicate my DocumentDB to.
Default consistency. Session is the default, but this is where I could change the consistency behavior if I really wanted to.
Next is Firewall. This is where I can enable the IP firewall and add IP Addreses like we did with the SQL Database.
Keys, is where you get the read-write and read-only keys that you need to access the DocumentDB from your application code.
Add to Search would allow you to connect it to a search service.
Browse, is just a collection browser.
Scale is where you change your throughput by changing your RUs and storage capacity.
Settings are some general settings with your DocumentDB account, like time to live or that data expiration we spoke of.
Ok, Document explorer, just what it sounds like – it allows you to look at the documents.
Query explorer, this is where you can run SQL queries on the document collections that you have.
Script explorer, this will allow you to create your stored procedures, triggers or user defined functions.
And That is the quick tour of DocumentDB.
 
We did a real fast overview of the DocumentDB, if you want to know more detail, I suggest you checkout the Cloud Academy course “Intro to Azure DocumentDB” by Josh Lane
 
And here are some additional links for you to learn more about DocumentDB and even a link about document modeling in general, which I thought was helpful.
Next let's look at the MongoDB API for CosmosDB.
 

About the Author

Students2126
Courses1


Jason Haley is an independent consultant who focuses on Azure and Angular. He has over 20+ years’ experience architecting, designing, developing and delivering software solutions using mostly Microsoft technologies. Jason recently achieved his MCSE: Cloud Platform and Infrastructure certification in May 2017 (by passing all of the 70-532, 70-533 and 70-534 exams). He is also a Microsoft Azure MVP and leads the North Boston Azure User Group. He frequently speaks at community events on topics relating to Azure.