Exercise - Deploy an Azure container registry
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
Launch Azure Cloud Shell and sign in to your Azure account using the
az login
command.az login
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
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
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