azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

[Feature Request] List Organizations in resource group / subscription

Open rvf148 opened this issue 6 years ago • 4 comments

I cannot list Azure DevOps organizations.

I would like to list Azure DevOps organizations per:

  • resource group
  • subscription
  • tenant

This way I can create automated loops over Azure DevOps organzation resources.

rvf148 avatar May 20 '19 15:05 rvf148

@rvf148 - Apologies for the delayed response. I have been doing some digging and here are my learning:

  1. Azure DevOps organization is not related to an Azure Subscription. Further, there is no resource allocation that occurs on creation of an organization for it be distributed across a resource group/tenant.
  2. Further, you could still create an Azure DevOps organization without an Azure subscription.

Therefore, could you clarify intent here?

geverghe avatar Jul 12 '19 06:07 geverghe

@geverghe In companies with a large amount of Azure DevOps organisations, there is a need to automate certain tasks, for example adjusting service endpoints in all projects of all Azure Devops organisations. In this case I would like to be able to iterate through all organisations I have access for, instead of adjusting manually the list op Azure DevOps organisations. Another scenario could be searching for the usage of certain features across Azure DevOps organisations.

rvf148 avatar Jul 12 '19 07:07 rvf148

@geverghe , it would be great to have an "az devops organization" to iterate over all the organizations that I am a member/user in. For example, I can see such a list at the URL: https://app.vsaex.visualstudio.com/me. As @rvf148 mentioned, for large organizations with several (possibly many) organizations, it would be nice for scripting to handle this dynamically rather than statically. I have several Premier customers who would benefit from having this functionality. Note that the Azure DevOps PAT creation process allows us to specify "All accessible organizations", so the authentication piece is already available that would allow access to multiple organizations via a single authentication token. Now we just need an "az devops organization" implementation to traverse the user's graph of connected organizations.

skeeler avatar Nov 26 '19 03:11 skeeler

As an alternative, I use a combination of Azure (Logic App, SQL, Pipelines) to maintain a list of all orgs for my employer. The Azure Logic App uses the Azure DevOps connector List Organizations on recurrence.

However, much time and money would be saved if we had something like 'az devops orgs' or 'az devops accounts'! 😉

To add... I am a member of the Project Collections Admin security group for each Org

Daleyon avatar Dec 07 '22 18:12 Daleyon