Skip to content

AzDoAPI_6_ServicePrinciple

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

SYNOPSIS

Initializes the cache with Azure DevOps service principals.

SYNTAX

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

DESCRIPTION

The AzDoAPI_6_ServicePrinciple function retrieves service principals from Azure DevOps and adds them to a cache. If no organization name is provided, it uses a global variable for the organization name. The function then exports the cache to a file.

EXAMPLES

EXAMPLE 1

AzDoAPI_6_ServicePrinciple -OrganizationName "MyOrganization"
This example initializes the cache with service principals from the "MyOrganization" Azure DevOps organization.

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 the List-DevOpsServicePrinciples cmdlet to retrieve service principals and the Add-CacheItem cmdlet to add them to the cache. The cache is then exported using the Export-CacheObject cmdlet.

RELATED LINKS

Commands

Resources

Clone this wiki locally