I am working with a company that uses Azure AD and has many Devops organizations.
I would like to do a cleanup as the majority of the Devops organizations were created by accident.
I have an account defined in Azure AD for which I can assign any rights.
I would like to find all the Devops organzations that exist that do not have any projects defined.
Currently, I am able to get a list of all the existing devops organizations that exist, as well as the organization owner.
I am not certain if there is a way to extract and see if any projects exist for the list of organizations that I have available.
What I would like to do is :
From the list of organizations, determine which organization (within devops) have no projects defined. If an organization has not project defined, then delete the organization. I would like to have this automated, and was wondering if it is possible to do this sort of task with powershell.
Thanks in advance.