Exercise - Deploy an Azure container registry
Important
You need your own Azure subscription to complete 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
Launch Azure Cloud Shell and sign in to your Azure account using the
az logincommand.az loginAt the top of the Cloud Shell window, select Settings, then select Go to Classic version.
Create a resource group named learn-acr-rg to hold the resources for this module using the
az group createcommand.az group create --name learn-acr-rg --location eastusDefine 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 Develop your naming and tagging strategy for Azure resources.
ACR_NAME=your-unique-acr-nameCreate an Azure container registry using the
az acr createcommand.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