< Back

Get-AzureRmADSpCredential

Tue Jan 29, 2019 10:05 pm

NAME Get-AzureRmADSpCredential



SYNOPSIS

Retrieves a list of credentials associated with a service principal.





SYNTAX

Get-AzureRmADSpCredential [-DefaultProfile <IAzureContextContainer>] -ObjectId <String> [<CommonParameters>]



Get-AzureRmADSpCredential [-DefaultProfile <IAzureContextContainer>] -ServicePrincipalName <String> [<CommonParameters>]





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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ObjectId <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ServicePrincipalName <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Graph.RBAC.Version1_6.ActiveDirectory.PSADCredential







NOTES









Example 1



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



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







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... credential

New-AzureRmADSpCredential

Remove-AzureRmADSpCredential

Get-AzureRmADServicePrincipal