Skip to main content
Version: 2.2.1-preview

Group-AzdoRepositoryByProject

SYNOPSIS

Groups Advanced Security repository enablement entries by project name, largest group first.

SYNTAX

Group-AzdoRepositoryByProject [-Repository] <Object[]> [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION

The Advanced Security org enablement API returns each repository as a projectId and repositoryId GUID with no names. This resolves the project GUIDs with a single Get-ADOPSProject call and groups the supplied entries by project name, so a result table can report where the gaps are instead of listing GUIDs.

Groups are ordered by descending count, then by project name, so the largest gap appears first. A project whose name cannot be resolved falls back to its GUID rather than being dropped.

EXAMPLES

EXAMPLE 1

Group-AzdoRepositoryByProject -Repository $Unenrolled

Returns Group-Object output with Name set to the project name and Count set to the number of supplied repositories in that project.

PARAMETERS

-Repository

Repository enablement entries, each carrying a projectId property.

Type: Object[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

Microsoft.PowerShell.Commands.GroupInfo

NOTES