hands-on lab

Interacting with Azure CosmosDB using Python SDK

Intermediate
1h
33
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.
Lab 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
About the author
Students
14,509
Labs
95
Courses
1
Learning paths
3

Parveen is an Azure advocate with previous experience in the professional consulting services industries. He specializes in infrastructure and DevOps with a wide range of knowledge in security and access management. He is also an Azure Certified - DevOps Engineer Expert, Security Engineer, Developer Associate, Administrator Associate, CompTIA Certified - Network+, Security+, and AWS Cloud Practitioner.
Parveen enjoys writing about cloud technologies and sharing the knowledge with the community to help students upskill in the cloud.

Covered topics
Lab steps
Logging into Azure using Azure CLI
Creating CosmosDB Account using Python SDK
Creating Container in CosmosDB Account using Python SDK