SC500-ACR-001SC-500Study guide skill: Implement and configure security controls for Azure Container RegistryReviewed

Contoso configured a private endpoint for a Premium Azure Container Registry and then set public network access to disabled. Since then, a pipeline that runs on agents managed by Azure DevOps can't push images to the registry. What should you do to restore the pipeline without re-enabling public network access?

  1. A. Run the pipeline on a self-hosted agent that has network line of sight to the private endpoint.Correct
  2. B. Enable the registry's admin account and use its credentials in the pipeline.Incorrect
  3. C. Also configure a service endpoint for the registry on the same virtual network.Incorrect
  4. D. Assign the AcrPush role to the service principal that the pipeline uses.Incorrect
Show answer and explanation

Answer: A

Explanation

Private endpoints aren’t currently supported with agents managed by Azure DevOps, so you need to use a self-hosted agent with network line of sight to the private endpoint.[1] Once public network access is disabled, instances of certain Azure services, including Azure DevOps Services, can’t access the registry.[1]

The admin account is only an authentication method and doesn’t open the blocked network path. It’s also a single set of registry-wide credentials with full permissions, so the guidance is to keep it disabled and authenticate with Microsoft Entra ID.[2] You can’t configure a service endpoint together with private link from the same virtual network.[1] AcrPush is a data-plane role, so it addresses permissions only and doesn’t fix the network problem of managed agents being unable to reach the private endpoint.[1][2]


Sources

  1. Connect privately to an Azure container registry by using Azure Private LinkMicrosoft Learn · Location: Introductory Important note / Disable access to a container registry by using a service endpoint · Checked
  2. Secure your Azure Container Registry deploymentMicrosoft Learn · Location: Service-specific security / Identity and access management · Checked