Open topic with navigation

# Preparing the Azure Container Registry and Resource Group

## Using the Azure Portal

To prepare the ACR (Azure Container Registry) and resource group on the Azure Portal:

1. Log in to the Azure portal at (`https://portal.azure.com`)
2. Select an active Azure subscription and click Create a Resource.
3. In the search box (case-insensitive), enter Container Registry and click create. A screen similar to this is displayed.

Later in this guide, the steps above will be referred to as "Create a resource of type <some resource>." For these references, take the steps shown above to create the resource of the specified type.

1. Enter a value for Registry Name. Note this name for later reference.
2. For Resource group, click Create New, and in Name, enter a resource group name.
3. For Location, select a location with enough resources for your deployment.

All other resources will need to use this location.

1. For SKU, choose the value you need (basic, medium, or standard).

1. Click Create to create the Azure Container Registry.

## Using the Azure Cloud Shell (CLI)

To prepare the ACR and Resource Group using the Azure Cloud Shell:

You must have create an ACR and create a resource group permissions to use this feature.

1. Open the Azure Cloud Shell (on the top right of the Azure Portal page). If necessary, confirm the creation of user storage.

2. Create the resource group by running the command:

       az group create --name <RESOURCE GROUP> --location <LOCATION>

   For example, `az group create --name srg-demo --location westeurope`

   Where:

   `<RESOURCE GROUP>` is your group name, which will be used later for all other resources

   `<LOCATION>` is the location where resource group will be created. To get a list of all locations, run the command:

       az account list-locations | jq ".[] | .name"

3. Check the `az` command response. It should contain the text:

    "provisioningState": "Succeeded"

4. Create the Azure Container Registry (ACR) by running the command:

     az acr create -n <your ACR name> -g <your resource group name> --admin-enabled "true" --sku "Standard"

For example:

     az acr create -n srgdemoacr -g srg-demo --admin-enabled "true" --sku "Standard"

5. Check the `az` command response. It should contain the text:

    "provisioningState": "Succeeded"

In succeeding procedures, the az command response should contain the same text: "provisioningState": "Succeeded"

Next Step: Preparing the Azure Kubernetes Service