hands-on lab

Interacting with Azure CosmosDB using Python SDK

Difficulty: Intermediate
Duration: Up to 1 hour
Students: 34
Rating: 5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Resources are the building blocks of a cloud application. The cloud development process thus begins with creating the appropriate environment into which you can deploy the different parts of the application. Azure offers you a wide range of development suites, including PythonSDK, .NET, CLI, and other third-party applications.

In this hands-on lab, you will discover how to use Python SDK to interact with the Azure environment and create a CosmosDB account and database using Azure CLI and Python SDK.

Learning Objectives

Upon completion of this intermediate-level lab, you will be able to:

  • Create Azure CosmosDB using Python SDK
  • Create Azure CosmosDB database and container resources using Python SDK

Intended Audience

  • Cloud Architects
  • DevOps Engineers
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • Azure Python SDK and Azure CLI
  • Working With Azure Cosmos DB

The following content can be used to fulfill the prerequisite:

Updates

May 2nd, 2023 - Updated theia to include autosave

Environment before

Environment after

Covered topics

Lab steps

Logging into Azure using Azure CLI
Creating CosmosDB Account using Python SDK
Creating Container in CosmosDB Account using Python SDK