DevHomeAzureExtension icon indicating copy to clipboard operation
DevHomeAzureExtension copied to clipboard

Multiple Azure Accounts Logged In: Unable To Clone Repositories

Open chenss3 opened this issue 1 year ago • 0 comments

Dev Home version

No response

Dev Home Azure Extension version

No response

Windows build number

No response

Other software

No response

Steps to reproduce the bug

  1. Login two Azure accounts into ADO
  2. Try cloning repository from account

Expected result

No response

Actual result

What happens: Unable to successfully get repositories from the second account when there are multiple Azure accounts signed in.

When I step through the code, I see that the code populates AzureRepositoryHierarchy with a set of organizations from the first account in _organizationsAndProjects. When the code gets to populating organizations for the second account, it checks if AzureRepositoryHierarchy's _organizationsAndProjects already has stuff populated in it (it does from the first account), it skips over it and returns the organizations from the first account.

My initial thought is this is because AzureRepositoryHierarchy isn't per developerID.

Included System Information

No response

chenss3 avatar Apr 02 '24 16:04 chenss3