Skip to content

Commit 30bdaee

Browse files
authored
Merge pull request #112694 from dlepow/acrarm
[ACR] template quickstart
2 parents c4163d4 + 2787625 commit 30bdaee

File tree

6 files changed

+97
-0
lines changed

6 files changed

+97
-0
lines changed

articles/container-registry/TOC.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
href: container-registry-get-started-portal.md
1818
- name: Create container registry - PowerShell
1919
href: container-registry-get-started-powershell.md
20+
- name: Create container registry - ARM template
21+
displayName: Resource Manager
22+
href: container-registry-get-started-geo-replication-template.md
2023
- name: Send events to Event Grid - CLI
2124
href: container-registry-event-grid-quickstart.md
2225
- name: Build and push Java images - CLI
@@ -107,6 +110,8 @@
107110
href: container-registry-auth-service-principal.md
108111
- name: Authenticate with managed identity
109112
href: container-registry-authentication-managed-identity.md
113+
- name: Authenticate with token (preview)
114+
href: container-registry-repository-scoped-permissions.md
110115
- name: Authenticate from Azure Container Instances
111116
href: container-registry-auth-aci.md
112117
- name: Authenticate from Kubernetes with pull secret
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
title: Quickstart - Create geo-replicated registry - Resource Manager template
3+
description: Learn how to create a geo-replicated Azure container registry by using an Azure Resource Manager template.
4+
services: azure-resource-manager
5+
author: dlepow
6+
ms.service: azure-resource-manager
7+
ms.topic: quickstart
8+
ms.custom: subject-armqs
9+
ms.author: danlep
10+
ms.date: 05/26/2020
11+
---
12+
13+
# Quickstart: Create a geo-replicated container registry by using a Resource Manager template
14+
15+
This quickstart shows how to create an Azure Container Registry instance by using an Azure Resource Manager template. The template sets up a [geo-replicated](container-registry-geo-replication.md) registry, which automatically synchronizes registry content across more than one Azure region. Geo-replication enables network-close access to images from regional deployments, while providing a single management experience. It's a feature of the [Premium](container-registry-skus.md) registry service tier.
16+
17+
[!INCLUDE [About Azure Resource Manager](../../includes/resource-manager-quickstart-introduction.md)]
18+
19+
If you don't have an Azure subscription, create a [free](https://azure.microsoft.com/free/) account before you begin.
20+
21+
## Prerequisites
22+
23+
None.
24+
25+
## Create a geo-replicated registry
26+
27+
### Review the template
28+
29+
The template used in this quickstart is from [Azure Quickstart templates](https://azure.microsoft.com/resources/templates/101-container-registry-geo-replication/). The template sets up a registry and an additional regional replica.
30+
31+
:::code language="json" source="~/quickstart-templates/101-container-registry-geo-replication/azuredeploy.json" range="1-81" highlight="45-74" :::
32+
33+
The following resources are defined in the template:
34+
35+
* **[Microsoft.ContainerRegistry/registries](/azure/templates/microsoft.containerregistry/registries)**: create an Azure container registry
36+
* **[Microsoft.ContainerRegistry/registries/replications](/azure/templates/microsoft.containerregistry/registries/replications)**: create a container registry replica
37+
38+
More Azure Container Registry template samples can be found in the [quickstart template gallery](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Containerregistry&pageNumber=1&sort=Popular).
39+
40+
### Deploy the template
41+
42+
1. Select the following image to sign in to Azure and open a template.
43+
44+
[![Deploy to Azure](../media/template-deployments/deploy-to-azure.svg)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-container-registry-geo-replication%2Fazuredeploy.json)
45+
46+
2. Select or enter the following values.
47+
48+
* **Subscription**: select an Azure subscription.
49+
* **Resource group**: select **Create new**, enter a unique name for the resource group, and then select **OK**.
50+
* **Location**: select a location for the resource group. Example: **Central US**.
51+
* **Acr Name**: accept the generated name for the registry, or enter a name. It must be globally unique.
52+
* **Location**: accept the generated location for the registry's home replica, or enter a location such as **Central US**.
53+
* **Acr Replica Location**: enter a location for the registry replica, using the region's short name. It must be different from the home registry location. Example: **westeurope**.
54+
* **I agree to the terms and conditions stated above**: Select.
55+
56+
:::image type="content" source="media/container-registry-get-started-geo-replication-template/template-properties.png" alt-text="Template properties":::
57+
58+
3. If you accept the terms and conditions, select **Purchase**. After the registry has been created successfully, you get a notification:
59+
60+
:::image type="content" source="media/container-registry-get-started-geo-replication-template/deployment-notification.png" alt-text="Portal notification":::
61+
62+
The Azure portal is used to deploy the template. In addition to the Azure portal, you can use the Azure PowerShell, Azure CLI, and REST API. To learn other deployment methods, see [Deploy templates](../azure-resource-manager/templates/deploy-cli.md).
63+
64+
## Review deployed resources
65+
66+
Use the Azure portal or a tool such as the Azure CLI to review the properties of the container registry.
67+
68+
1. In the portal, search for Container Registries, and select the container registry you created.
69+
70+
1. On the **Overview** page, note the **Login server** of the registry. Use this URI when you use Docker to tag and push images to your registry. For information, see [Push your first image using the Docker CLI](container-registry-get-started-docker-cli.md).
71+
72+
:::image type="content" source="media/container-registry-get-started-geo-replication-template/registry-overview.png" alt-text="Registry overview":::
73+
74+
1. On the **Replications** page, confirm the locations of the home replica and the replica added through the template. If desired, add more replicas on this page.
75+
76+
:::image type="content" source="media/container-registry-get-started-geo-replication-template/registry-replications.png" alt-text="Registry replications":::
77+
78+
## Clean up resources
79+
80+
When you no longer need them, delete the resource group, the registry, and the registry replica. To do so, go to the Azure portal, select the resource group that contains the registry, and then select **Delete resource group**.
81+
82+
## Next steps
83+
84+
In this quickstart, you created an Azure Container Registry with a Resource Manager template, and configured a registry replica in another location. Continue to the Azure Container Registry tutorials for a deeper look at ACR.
85+
86+
> [!div class="nextstepaction"]
87+
> [Azure Container Registry tutorials](container-registry-tutorial-prepare-registry.md)
88+
89+
For a step-by-step tutorial that guides you through the process of creating a template, see:
90+
91+
> [!div class="nextstepaction"]
92+
> [Tutorial: Create and deploy your first Azure Resource Manager template](/azure/azure-resource-manager/templates/template-tutorial-create-first-template.md)
Loading
130 KB
Loading
Loading
Loading

0 commit comments

Comments
 (0)