Get-​Azure​Rm​AD​Sp​Credential

Retrieves a list of credentials associated with a service principal.

Syntax

Get-AzureRmADSpCredential
   -ObjectId <String>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
Get-AzureRmADSpCredential
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -ServicePrincipalName <String>

Description

The Get-AzureRmADSpCredential cmdlet can be used to retrieve a list of credentials associated with a service principal. This command will retrieve all of the credential properties (but not the credential value) associated with the service principal.

Examples

-------------------------- Example 1 --------------------------

@{paragraph=PS C:\>}

PS E:\> Get-AzureRmADSpCredential -ServicePrincipalName http://test12345

Returns a list of credentials associated with the service principal having SPN 'http://test12345'.

Required Parameters

-ObjectId

The object id of the service principal to retrieve credentials from.

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

The name (SPN) of the service principal to retrieve credentials from.

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