Skip to content

Commit 396fb82

Browse files
authored
Merge pull request #196771 from tejaswikolli-web/USERSTORY13817440
USER STORY 13817440
2 parents a8128fe + 2dc28fe commit 396fb82

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,26 @@ For many scenarios, disable registry access from public networks. This configura
318318

319319
### Disable public access - CLI
320320

321+
322+
> [!NOTE]
323+
>If the public access is disabled, the `az acr build` commands will no longer work.
324+
321325
To disable public access using the Azure CLI, run [az acr update][az-acr-update] and set `--public-network-enabled` to `false`.
322326

323327
```azurecli
324328
az acr update --name $REGISTRY_NAME --public-network-enabled false
325329
```
326330

331+
## Execute the `az acr build` with private endpoint and private registry
332+
333+
Consider the following options to execute the `az acr build` successfully.
334+
> [!NOTE]
335+
> Once you disable public network [access here](/azure/container-registry/container-registry-private-link#disable-public-access), then `az acr build` commands will no longer work.
336+
337+
1. Assign a [dedicated agent pool.](/azure/container-registry/tasks-agent-pools#Virtual-network-support)
338+
2. If agent pool is not available in the region, add the regional [Azure Container Registry Service Tag IPv4](/azure/virtual-network/service-tags-overview#use-the-service-tag-discovery-api) to the [firewall access rules.](/azure/container-registry/container-registry-firewall-access-rules#allow-access-by-ip-address-range)
339+
3. Create an ACR task with a managed identity, and enable trusted services to [access network restricted ACR.](/azure/container-registry/allow-access-trusted-services#example-acr-tasks)
340+
327341
## Validate private link connection
328342

329343
You should validate that the resources within the subnet of the private endpoint connect to your registry over a private IP address, and have the correct private DNS zone integration.

0 commit comments

Comments
 (0)