Setting up the Microsoft Azure CLI Environment

You can use either the Microsoft Azure Cloud Shell or Microsoft Azure command-line interface (CLI) for running the Microsoft Azure commands. In the following sections, the procedures are provided for the Azure CLI.

Prerequisites

You must have a Microsoft Azure account with an active subscription. If required, create a new Azure account.

Procedure

  1. Install the Microsoft Azure command-line interface (CLI). For installation instructions, see Microsoft Azure CLI documentation
  2. In Microsoft Azure CLI, sign in to Microsoft Azure by using the login command.
    az login
    The CLI opens a browser and loads the sign-in page.
  3. Sign in with your account credentials in the browser.
    For details, see Get started with Azure CLI.

What to do next

Create an Azure Container Registry (ACR) and push the Docker image of the application to it, see Setting Up an Azure Container Registry.