Skip to content

Authenticating to ACR using az credentials / managed identity #454

@mbkrafft

Description

@mbkrafft

Hi,

I'm trying to build and push images to an Azure Container Registry without having docker as an explicit dependency. The image is being built correctly, but pushing it to a remote registry is not working without an explicit docker login.

Ideally I would like to be able to auth and push the image to an ACR by using:

  • the az login and az acr login -n <registry> commands locally
  • a managed identity in the ADO build agents

Any roadmap or potential workarounds for using the Azure Default Credentials to directly push to a private ACR specified by the <ContainerRegistry>$(registryName)</ContainerRegistry> property during dotnet publish?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions