Azure CLI and Azure Portal Overview

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.

Get hands-on with 1200+ tech skills courses.