Skip to content

Support multiple simultaneous service connections in ImageBuilder commands #1711

Closed

Description

@lbussell

Background

In order to build images with internal versions of .NET, we need to access to two resources at once:

  • Storage account containing internal .NET versions
  • The staging container registry

This isn't normally a problem since we use service connections backed by managed identities. Managed identities can have access to more than one resource. However, this isn't the case if the two resources are in different Azure tenants. One managed identity can't have permission to resources across different tenants. So, this necessitates using multiple service connections.

Possible approach

We can do this using AzurePipelinesCredential. If the pipeline has authorization to multiple service connections, then AzurePipelinesCredential can use the System.AccessToken (from the pipeline) to get Credentials for a specific service connection by specifying the clientId and serviceConnectionId.

Activity

  1. added theissue type on Jun 9, 2025
  2. moved this from Backlog to In Progress in .NET Dockeron Jun 9, 2025
  3. lbussell commented on Jun 9, 2025

    @lbussell
    MemberAuthor

    [Triage] The first instance of this is in-progress here: #1719

  4. self-assigned this
    on Jun 9, 2025
  5. moved this from In Progress to Done in .NET Dockeron Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions