Skip to content

Commit 469941f

Browse files
authored
Merge pull request #107496 from dlepow/acrfix4
[ACR] Private link prereq
2 parents bd7eef9 + 7864254 commit 469941f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

articles/container-registry/container-registry-private-link.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ This feature is available in the **Premium** container registry service tier. Fo
2323
## Prerequisites
2424

2525
* To use the Azure CLI steps in this article, Azure CLI version 2.2.0 or later is recommended. If you need to install or upgrade, see [Install Azure CLI][azure-cli]. Or run in [Azure Cloud Shell](../cloud-shell/quickstart.md).
26-
* If you don't already have a container registry, create one (Premium tier required) and push a sample image such as `hello-world` from Docker Hub. For example, use the [Azure portal][quickstart-portal] or the [Azure CLI][quickstart-cli] to create a registry.
26+
* If you don't already have a container registry, create one (Premium tier required) and push a sample image such as `hello-world` from Docker Hub. For example, use the [Azure portal][quickstart-portal] or the [Azure CLI][quickstart-cli] to create a registry.
27+
* If you want to configure registry access using a private link in a different Azure subscription, you need to register the resource provider for Azure Container Registry in that subscription. For example:
28+
29+
```azurecli
30+
az account set --subscription <Name or ID of subscription of private link>
31+
32+
az provider register --namespace Microsoft.ContainerRegistry
33+
```
2734

2835
The Azure CLI examples in this article use the following environment variables. Substitute values appropriate for your environment. All examples are formatted for the Bash shell:
2936

0 commit comments

Comments
 (0)