Skip to content

Commit 153c88a

Browse files
author
RoseHJM
committed
Jack's feedback
1 parent 4864429 commit 153c88a

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

articles/deployment-environments/how-to-configure-extensibility-model-custom-image.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -496,24 +496,6 @@ You can use Pulumi to create an Azure Container Registry and publish your image
496496

497497
Select the appropriate tab to learn more about each approach.
498498

499-
### [Public registry](#tab/public-registry/)
500-
501-
**Use a public registry with anonymous pull**
502-
503-
To set up your registry to have anonymous image pull enabled, run the following commands in the Azure CLI:
504-
505-
```azurecli
506-
az login
507-
az acr login -n {YOUR_REGISTRY}
508-
az acr update -n {YOUR_REGISTRY} --public-network-enabled true
509-
az acr update -n {YOUR_REGISTRY} --anonymous-pull-enabled true
510-
```
511-
512-
When you're ready to push your image to your registry, run the following command:
513-
514-
```docker
515-
docker push {YOUR_REGISTRY}.azurecr.io/{YOUR_IMAGE_LOCATION}:{YOUR_TAG}
516-
```
517499
### [Private registry](#tab/private-registry/)
518500

519501
**Use a private registry with secured access**
@@ -567,6 +549,24 @@ In this configuration, ADE uses the Managed Identity for the PET, whether system
567549

568550
When you're ready to push your image to your registry, run the following command:
569551

552+
```docker
553+
docker push {YOUR_REGISTRY}.azurecr.io/{YOUR_IMAGE_LOCATION}:{YOUR_TAG}
554+
```
555+
### [Public registry](#tab/public-registry/)
556+
557+
**Use a public registry with anonymous pull**
558+
559+
To set up your registry to have anonymous image pull enabled, run the following commands in the Azure CLI:
560+
561+
```azurecli
562+
az login
563+
az acr login -n {YOUR_REGISTRY}
564+
az acr update -n {YOUR_REGISTRY} --public-network-enabled true
565+
az acr update -n {YOUR_REGISTRY} --anonymous-pull-enabled true
566+
```
567+
568+
When you're ready to push your image to your registry, run the following command:
569+
570570
```docker
571571
docker push {YOUR_REGISTRY}.azurecr.io/{YOUR_IMAGE_LOCATION}:{YOUR_TAG}
572572
```

articles/deployment-environments/includes/custom-image-script.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ms.service: azure-deployment-environments
33
ms.topic: include
44
author: RoseHJM
55
ms.author: rosemalcolm
6-
ms.date: 05/23/2024
6+
ms.date: 09/25/2024
77
---
88

99
Microsoft provides a quickstart script to help you build your custom image and push it to a registry. The script builds your image and pushes it to a specified Azure Container Registry (ACR) under the repository `ade` and the tag `latest`.
@@ -13,6 +13,7 @@ To use the script, you must:
1313
1. Create a Dockerfile and scripts folder to support the ADE extensibility model.
1414
1. Supply a registry name and directory for your custom image.
1515
1. Have the Azure CLI and Docker Desktop installed and in your PATH variables.
16+
1. Have Docker Desktop running.
1617
1. Have permissions to push to the specified registry.
1718

1819
You can view the script [here](https://github.com/Azure/deployment-environments/blob/main/Runner-Images/quickstart-image-build.ps1).

0 commit comments

Comments
 (0)