1

Is there a way to get details of Users who pushed an Image in to Azure Container Registry (ACR). We have enabled RBAC and integrated the ACR with Azure Active Directory. When I go to a repository and see the details of Image, it currently does not show information like who pushed the image to ACR.

Manu
  • 331
  • 3
  • 15
  • Does the solution solve your problem? Or you need more help? If it works for you please accept it as the answer. – Charles Xu Mar 24 '20 at 01:50

1 Answers1

1

Unfortunately, the ACR does not store the people who pushed the images. You can only see the messages that when you create the repository and when you update it. You can use the CLI command az acr repository show --repository repo_name and it's output like this:

enter image description here

ACR does not care about who pushes the images, if someone has the permission, then he can do it. The ACR is a private docker registry, so I recommend that it's better for you to control the permissions of the ACR then record the messages who pushed the images. You can control the permissions following the steps here.

Charles Xu
  • 29,862
  • 2
  • 22
  • 39
  • @Manu I'm happy to hear that the answer is helpful to you :-) – Charles Xu Mar 25 '20 at 09:15
  • Also while going through the list of feedback provided for ACR, I saw that the Audit trial for any image operation in ACR is being developed. Link : https://feedback.azure.com/forums/903958-azure-container-registry/suggestions/34222399-expose-acr-audit-logs-to-enduse – Manu Mar 25 '20 at 09:16
  • @Manu Yeah, it's ongoing. I also expect this feature. – Charles Xu Mar 25 '20 at 09:18