Skip to content

Get-EntraAppKeyCredentials

SYNOPSIS

Retrieves key credentials and password credentials for Microsoft Entra applications.

SYNTAX

Get-EntraAppKeyCredentials [-onderwijs] [[-ServicePrincipalName] <String>]

DESCRIPTION

The `Get-EntraAppKeyCredentials` function retrieves key credentials and password credentials for Microsoft Entra applications. It supports querying applications by their display name and provides details such as the application owner, credential type, and expiration dates. The function can connect to different tenants, including the "onderwijs" tenant, and uses Microsoft Graph API for data retrieval.

EXAMPLES

EXAMPLE 1

Get-EntraAppKeyCredentials -onderwijs

Retrieves key credentials and password credentials for applications in the "onderwijs" tenant.

EXAMPLE 2

Get-EntraAppKeyCredentials -ServicePrincipalName "MyApp"

Retrieves key credentials and password credentials for the application with the display name "MyApp."

EXAMPLE 3

Get-EntraAppKeyCredentials

Retrieves key credentials and password credentials for all applications in the default tenant.

PARAMETERS

-onderwijs

A switch parameter that, when specified, connects to the "onderwijs" tenant and retrieves credentials for applications in that tenant.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ServicePrincipalName

The display name of the service principal to query. If not specified, retrieves all applications.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES