Exercise - Deploy an Azure container registry

Completed

Important

You need your own Azure subscription to run this exercise, and you might incur charges. If you don't already have an Azure subscription, create a free account before you begin.

Create an Azure container registry

  1. Launch Azure Cloud Shell and sign in to your Azure account using the az login command.

    az login
    
  2. At the top of the Cloud Shell window, select Settings, then select Go to Classic version.

  3. Create a resource group named learn-acr-rg to hold the resources for this module using the az group create command.

    az group create --name learn-acr-rg --location eastus
    
  4. Define an environment variable, ACR_NAME, to hold your container registry name using the following command. The name must be unique within Azure and contain 5-50 alphanumeric characters. For more information, see Naming conventions for Azure resources.

    ACR_NAME=your-unique-acr-name
    
  5. Create an Azure container registry using the az acr create command.

    Note

    In this example, we deploy a premium registry SKU. The premium SKU is required for geo-replication.

    az acr create --resource-group learn-acr-rg --name $ACR_NAME --sku Premium