Skip to content

cleanup-acr-images pipeline fails with missing service connection reference #2028

Closed

Description

@lbussell

The dotnet-docker-tools-cleanup-acr-images-official pipeline is failing because the OIDC service connection is not explicitly referenced in the pipeline stage.

Error:

There is no explicit reference to service connection 00000000-0000-0000-0000-000000000000
from current stage Execute.Clean.__default.

The AzurePipelinesCredential cannot obtain an OIDC token, causing CleanAcrImagesCommand to fail when logging in to ACR.

Failed build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2928414

Fix: The service connection needs to be explicitly referenced in the pipeline stage via reference-service-connections.yml.

/cc @mthalman

Activity

  1. gdams commented on Mar 18, 2026

    @gdams
    Member

    @dagood we also seem to be seeing something similar in our Go cleanup pipeline although I will note that our cleanup pipeline has drifted out of sync with the .NET one (https://dev.azure.com/dnceng/internal/_build/results?buildId=2929388&view=logs&j=3dc8fd7e-4368-5a92-293e-d53cefc8c4b3&t=00170b8f-1061-5420-820e-1eb883d5ca57)

  2. dagood commented on Mar 18, 2026

    @dagood
    Member

    After a quick update to match the way the cleanup pipeline works here (easier to do now that we do maintain our own eng/pipeline/stages/publish-config-prod.yml), we actually don't hit this error and it succeeds. microsoft/go-images#557

  3. dagood commented on Mar 18, 2026

    @dagood
    Member
  4. self-assigned this
    on Mar 23, 2026
  5. added theissue type on Mar 23, 2026
  6. moved this from Backlog to In Progress in .NET Dockeron Mar 23, 2026
  7. added 2 commits that reference this issue on Mar 23, 2026
    d635b5c
    bfff439
  8. moved this from In Progress to Done in .NET Dockeron Mar 24, 2026
  9. added a commit that references this issue on Mar 24, 2026
    fb308a5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions