Azure CLI and Azure Portal Overview
Explore how to interact with Azure Cosmos DB using Azure CLI and the Azure portal. Learn to create resource groups, Cosmos DB accounts, and databases in serverless mode, manage access keys securely, and understand the key differences between CLI and portal operations for efficient database management.
Azure CLI
The Azure CLI is a tool that lets us interact with Azure through a terminal. We will use it to interact with Cosmos DB during the course, so there’s no need to leave lessons to utilize the portal; we can do everything with the terminal.
Installation
There are different ways to install the CLI, so check the official documentation if you want to use it on your machine. However, you can follow this course without installing it, as every terminal in these lessons has it installed already.
On top of that, the Azure portal offers the Azure Cloud Shell so that commands can run directly from the web page.
You can use the following terminal to run your commands.
Getting started
The first thing to do with the CLI is log in with your Azure account.
To do so, run the az login command and follow the instructions, and the list of subscriptions should appear.
We are ready to go, but before moving to Cosmos DB, we suggest you set a default location for ...