Skip to content

Commit 04452f8

Browse files
committed
updates for preview
1 parent 6bd8637 commit 04452f8

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

articles/container-registry/TOC.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
items:
4040
- name: Security baseline
4141
href: security-baseline.md
42-
- name: Container registry SKUs and limits
42+
- name: Container registry tiers and limits
4343
href: container-registry-skus.md
4444
- name: Registries, repositories, and images
4545
href: container-registry-concepts.md
@@ -68,6 +68,8 @@
6868
href: container-registry-repositories.md
6969
- name: Import container images
7070
href: container-registry-import-images.md
71+
- name: Transfer artifacts (preview)
72+
href: container-registry-transfer-images.md
7173
- name: Lock container images
7274
href: container-registry-image-lock.md
7375
- name: Delete container images

articles/container-registry/container-registry-transfer-images.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Transfer artifacts
33
description: Transfer collections of images or other artifacts from one container registry to another registry by creating a transfer pipeline using Azure storage accounts
44
ms.topic: article
5-
ms.date: 04/13/2020
5+
ms.date: 05/08/2020
66
ms.custom:
77
---
88

@@ -16,11 +16,14 @@ To transfer artifacts, you create a *transfer pipeline* that replicates artifact
1616
* The blob is copied from the source storage account to a target storage account
1717
* The blob in the target storage account gets imported as artifacts in the target registry. You can set up the import pipeline to trigger whenever the artifact blob updates in the target storage.
1818

19-
Transfer is ideal for copying content between two registries in physically disconnected clouds, mediated by storage accounts in each cloud. Azure Container Registry also offers [image import](container-registry-import-images.md) for image copy from registries in connected clouds including Docker Hub and other cloud vendors.
19+
Transfer is ideal for copying content between two Azure container registries in physically disconnected clouds, mediated by storage accounts in each cloud. For image copy from container registries in connected clouds including Docker Hub and other cloud vendors, [image import](container-registry-import-images.md) is recommended instead.
2020

21-
In this article, you use Azure Resource Manager template deployments to create and run the transfer pipeline. The Azure CLI is used to provision the associated resources such as storage secrets, key vaults, and managed identities. Azure CLI version 2.2.0 or later is recommended. If you need to install or upgrade the CLI, see [Install Azure CLI][azure-cli].
21+
In this article, you use Azure Resource Manager template deployments to create and run the transfer pipeline. The Azure CLI is used to provision the associated resources such as storage secrets. Azure CLI version 2.2.0 or later is recommended. If you need to install or upgrade the CLI, see [Install Azure CLI][azure-cli].
2222

23-
This feature is available in the **Premium** container registry service tier. For information about registry service tiers and limits, see [Azure Container Registry SKUs](container-registry-skus.md).
23+
This feature is available in the **Premium** container registry service tier. For information about registry service tiers and limits, see [Azure Container Registry tiers](container-registry-skus.md).
24+
25+
> [!IMPORTANT]
26+
> This feature is currently in preview. Previews are made available to you on the condition that you agree to the [supplemental terms of use][terms-of-use]. Some aspects of this feature may change prior to general availability (GA).
2427
2528
## Prerequisites
2629

@@ -46,7 +49,7 @@ You create the following three pipeline resources for image transfer between reg
4649
Storage authentication uses SAS tokens, managed as secrets in key vaults. The pipelines use managed identities to read the secrets in the vaults.
4750

4851
* **[ExportPipeline](#create-exportpipeline-with-resource-manager)** - Long-lasting resource that contains high-level information about the *source* registry and storage account. This information includes the source storage blob container URI and the key vault managing the source SAS token.
49-
* **[ImportPipeline](#create-importpipeline-with-resource-manager)** - Long-lasting resource that contains high-level information about the *target* registry and storage account. This information includes the target storage blob container URI and the key vault managing the target SAS token. An import trigger is enabled by default, so the pipeline runs automatically when an artifact blob lands in the target storage container.
52+
* **[ImportPipeline](#create-importpipeline-with-resource-manager)** - Long-lasting resource that contains high-level information about the *target* registry and storage account. This information includes the target storage blob container URI and the key vault managing the target SAS token. An import trigger is enabled by default, so the pipeline runs automatically when an artifact blob lands in the target storage container.
5053
* **[PipelineRun](#create-pipelinerun-with-resource-manager)** - Resource used to invoke either an ExportPipeline or ImportPipeline resource.
5154
* You run the ExportPipeline manually by creating a PipelineRun resource and specify the artifacts to export.
5255
* If an import trigger is enabled, the ImportPipeline runs automatically. It can also be run manually using a PipelineRun.
@@ -72,7 +75,7 @@ In the following example, command output is assigned to the EXPORT_SAS environme
7275
EXPORT_SAS=?$(az storage container generate-sas \
7376
--name transfer \
7477
--account-name $SOURCE_SA \
75-
--expiry 2020-05-01 \
78+
--expiry 2021-01-01 \
7679
--permissions alrw \
7780
--https-only \
7881
--output tsv)
@@ -101,7 +104,7 @@ In the following example, command output is assigned to the IMPORT_SAS environme
101104
IMPORT_SAS=?$(az storage container generate-sas \
102105
--name transfer \
103106
--account-name $TARGET_SA \
104-
--expiry 2020-05-01 \
107+
--expiry 2021-01-01 \
105108
--permissions dlr \
106109
--https-only \
107110
--output tsv)
@@ -210,11 +213,11 @@ IMPORT_RES_ID=$(az group deployment show \
210213
--output tsv)
211214
```
212215

213-
## Create PipelineRun with Resource Manager
216+
## Create PipelineRun for export with Resource Manager
214217

215218
Create a PipelineRun resource for your source container registry using Azure Resource Manager template deployment. This resource runs the ExportPipeline resource you created previously, and exports specified artifacts from your container registry as a blob to your source storage account.
216219

217-
Copy PipelineRun Resource Manager [template files](https://github.com/Azure/acr/tree/master/docs/image-transfer/PipelineRun) to a local folder.
220+
Copy PipelineRun Resource Manager [template files](https://github.com/Azure/acr/tree/master/docs/image-transfer/PipelineRun/PipelineRun-Export) to a local folder.
218221

219222
Enter the following parameter values in the file `azuredeploy.parameters.json`:
220223

@@ -236,9 +239,6 @@ az deployment group create \
236239
--parameters azuredeploy.parameters.json
237240
```
238241

239-
> [!IMPORTANT]
240-
> For artifact export, if prompted, leave the `sourceName` blank. For testing, you can also leave `catalogDigest` and `forceUpdateTag` values blank.
241-
242242
It can take several minutes for artifacts to export. When deployment completes successfully, verify artifact export by listing the exported blob in the *transfer* container of the source storage account. For example, run the [az storage blob list][az-storage-blob-list] command:
243243

244244
```azurecli
@@ -271,11 +271,11 @@ az acr repository list --name <target-registry-name>
271271

272272
If you didn't enable the `sourceTriggerStatus` parameter of the import pipeline, run the ImportPipeline resource manually, as shown in the following section.
273273

274-
### Run ImportPipeline resource manually (optional)
274+
## Create PipelineRun for import with Resource Manager (optional)
275275

276276
You can also use a PipelineRun resource to trigger an ImportPipeline for artifact import to your target container registry.
277277

278-
Copy PipelineRun Resource Manager [template files](https://github.com/Azure/acr/tree/master/docs/image-transfer/PipelineRun) to a local folder.
278+
Copy PipelineRun Resource Manager [template files](https://github.com/Azure/acr/tree/master/docs/image-transfer/PipelineRun/PipelineRun-Import) to a local folder.
279279

280280
Enter the following parameter values in the file `azuredeploy.parameters.json`:
281281

@@ -295,9 +295,6 @@ az deployment group create \
295295
--parameters azuredeploy.parameters.json
296296
```
297297

298-
> [!IMPORTANT]
299-
> For artifact import to your registry, if prompted, leave the `targetName` blank. You can also leave `catalogDigest` and `forceUpdateTag` values blank.
300-
301298
When deployment completes successfully, verify artifact import by listing the repositories in the target container registry. For example, run [az acr repository list][az-acr-repository-list]:
302299

303300
```azurecli
@@ -340,9 +337,13 @@ az deployment group delete \
340337
* For other pipeline issues, provide the deployment [correlation ID](../azure-resource-manager/templates/deployment-history.md) of the export run or import run to the Azure Container Registry team.
341338

342339

340+
## Next steps
343341

342+
To import single container images to an Azure container registry from a public registry or another private registry, see the [az acr import][az-acr-import] command reference.
344343

345344
<!-- LINKS - External -->
345+
[terms-of-use]: https://azure.microsoft.com/support/legal/preview-supplemental-terms/
346+
346347

347348

348349
<!-- LINKS - Internal -->
@@ -359,6 +360,7 @@ az deployment group delete \
359360
[az-deployment-group-delete]: /cli/azure/deployment/group#az-deployment-group-delete
360361
[az-deployment-group-show]: /cli/azure/deployment/group#az-deployment-group-show
361362
[az-acr-repository-list]: /cli/azure/acr/repository#az-acr-repository-list
363+
[az-acr-import]: /cli/azure/acr#az-acr-import
362364

363365

364366

0 commit comments

Comments
 (0)