Skip to content

acr import fails with acrpush role #281

@SteveLasker

Description

@SteveLasker

Describe the bug
When running az acr import, under a task with acrpush rights, I receive a failure of unkonwn registry.

To Reproduce
Steps to reproduce the behavior:

  1. create a sp with acrpush rights
  2. az acr login, with the sp user/pwd
  3. az acr import --name contosobaseimages --source docker.io/library/node:9-alpine -t staging/node:9-alpine --force

ERROR: The resource with name 'contosobaseimages' and type 'Microsoft.ContainerRegistry/registries' could not be found in subscription 'SteveLas-Internal (daae1e1a-63dc-454f-825d-b39289070f79)'.

Expected behavior
acrpush rights to work.

Work around
I had to assign contributor rights to get this flow to work. Which is much more than Import should require.

Metadata

Metadata

Assignees

Labels

feature-artifact-syncIssues related to Artifact Sync featurefeature-requestIssues that request new featurestriagedUse after the issue is triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions