Skip to content

AzDoAPI_4_GitRepositoryCache

github-actions[bot] edited this page Aug 18, 2026 · 1 revision

SYNOPSIS

Initializes the Git repository cache for Azure DevOps projects.

SYNTAX

AzDoAPI_4_GitRepositoryCache [[-OrganizationName] <String>] 
 [<CommonParameters>]

DESCRIPTION

The AzDoAPI_4_GitRepositoryCache function initializes the Git repository cache by enumerating live projects and retrieving their repositories from Azure DevOps. The repositories are then added to the cache.

EXAMPLES

EXAMPLE 1

AzDoAPI_4_GitRepositoryCache -OrganizationName "MyOrganization"
Initializes the Git repository cache for the specified Azure DevOps organization.

EXAMPLE 2

AzDoAPI_4_GitRepositoryCache
Initializes the Git repository cache using the global organization name variable.

PARAMETERS

-OrganizationName

The name of the Azure DevOps organization. If not provided, the function uses the global variable $Global:DSCAZDO_OrganizationName.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
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

NOTES

This function uses verbose logging to indicate the progress and actions taken during the cache initialization process. It also handles errors by logging them as errors.

RELATED LINKS

Commands

Resources

Clone this wiki locally