Get-​Azure​Rm​AD​Service​Principal

Filters active directory service principals.

Syntax

Get-AzureRmADServicePrincipal
   [-ServicePrincipalName <String>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
Get-AzureRmADServicePrincipal
   -ServicePrincipalName <String>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
Get-AzureRmADServicePrincipal
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -SearchString <String>
Get-AzureRmADServicePrincipal
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -ObjectId <Guid>

Description

Filters active directory service principals.

Examples

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

@{paragraph=PS C:\>}

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

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

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

@{paragraph=PS C:\>}

PS C:\> Get-AzureRmADServicePrincipal -SearchString "Web"

Filters all ad service principals that have display name starting with "Web".

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

@{paragraph=PS C:\>}

PS C:\> Get-AzureRmADServicePrincipal

Gets all AD service principals.

Required Parameters

-ObjectId

Object id of the service principal.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SearchString

Fetches all service principals that have the display name starting with this value.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServicePrincipalName

SPN of the service.

Type:String
Aliases:SPN
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False