Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureADServicePrincipal

Get-AzureADServicePrincipal

microsoft.azure.commands.resources.dll

Synopsis

Filters active directory service principals.

Syntax

Get-AzureADServicePrincipal [-ServicePrincipalName] [<CommonParameters>]

Get-AzureADServicePrincipal [-SearchString] [<CommonParameters>]

Get-AzureADServicePrincipal [-ObjectId] [<CommonParameters>]

Get-AzureADServicePrincipal [-ServicePrincipalName] [<CommonParameters>]

Detailed Description

Filters active directory service principals.

Parameters

-ServicePrincipalName <String>

SPN of the service.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-SearchString <String>

The service principal display name

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-ObjectId <Guid>

Object id of the service principal.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Filters service principals using SPN --------------------------

Gets service principals with 36f81fc3-b00f-48cd-8218-3879f51ff39f SPN

PS C:\> Get-AzureADServicePrincipal -SPN 36f81fc3-b00f-48cd-8218-3879f51ff39f

-------------------------- Filters service principals using Search String --------------------------

Filters all ad service principals that has Web in the display name.

PS C:\> Get-AzureADServicePrincipal -SearchString Web

-------------------------- List AD service principals --------------------------

Gets all AD service principals

PS C:\> Get-AzureADServicePrincipal

Get-AzureADGroup
Get-AzureADUser
Get-AzureADGroupMember