편집

다음을 통해 공유


Get-EntraDeletedApplication

Retrieves the list of previously deleted applications.

Syntax

Get-EntraDeletedApplication
   [-Filter <String>]
   [-All]
   [-Top <Int32>]
   [-Property <String[]>]
   [<CommonParameters>]
Get-EntraDeletedApplication
   -ApplicationId <String>
   [-Property <String[]>]
   [<CommonParameters>]
Get-EntraDeletedApplication
   [-SearchString <String>]
   [-All]
   [-Property <String[]>]
   [<CommonParameters>]

Description

The Get-EntraDeletedApplication cmdlet Retrieves the list of previously deleted applications.

Note: Deleted security groups are permanently removed and can't be retrieved.

Examples

Example 1: Get list of deleted applications

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -Property Id, AppId, DisplayName, DeletedDateTime, DeletionAgeInDays | Select-Object Id, AppId, DisplayName, DeletedDateTime, DeletionAgeInDays | Format-Table -AutoSize

id                                   displayName           appId                                deletedDateTime       DeletionAgeInDays
--                                   -----------           -----                                ---------------       -----------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb Contoso Fieldglass    bbbbbbbb-1111-2222-3333-cccccccccccc 2/12/2025 11:07:07 AM                 5
cccccccc-4444-5555-6666-dddddddddddd New Entra Application dddddddd-5555-6666-7777-eeeeeeeeeeee 2/12/2025 11:07:56 AM                 5

This cmdlet retrieves the list of deleted applications.

Example 2: Get list of deleted applications using All parameter

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -All | Select-Object Id, DisplayName, AppId, DeletedDateTime, DeletionAgeInDays | Format-Table -AutoSize

id                                   displayName           appId                                deletedDateTime       DeletionAgeInDays
--                                   -----------           -----                                ---------------       -----------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb Contoso Fieldglass    bbbbbbbb-1111-2222-3333-cccccccccccc 2/12/2025 11:07:07 AM                 5
cccccccc-4444-5555-6666-dddddddddddd New Entra Application dddddddd-5555-6666-7777-eeeeeeeeeeee 2/12/2025 11:07:56 AM                 5

This cmdlet retrieves the list of deleted applications using All parameter.

Example 3: Get top two deleted applications

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -Top 2 | Select-Object Id, DisplayName, AppId, DeletedDateTime, DeletionAgeInDays | Format-Table -AutoSize

id                                   displayName           appId                                deletedDateTime       DeletionAgeInDays
--                                   -----------           -----                                ---------------       -----------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb Contoso Fieldglass    bbbbbbbb-1111-2222-3333-cccccccccccc 2/12/2025 11:07:07 AM                 5
cccccccc-4444-5555-6666-dddddddddddd New Entra Application dddddddd-5555-6666-7777-eeeeeeeeeeee 2/12/2025 11:07:56 AM                 5

This cmdlet retrieves top two deleted applications. You can use -Limit as an alias for -Top.

Example 4: Get deleted applications using SearchString parameter

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -SearchString 'TestApp1'

DisplayName Id                                   AppId                                SignInAudience PublisherDomain
----------- --                                   -----                                -------------- ---------------
TestApp1    aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb bbbbbbbb-1111-2222-3333-cccccccccccc AzureADMyOrg   contoso.com

This cmdlet retrieves deleted applications using SearchString parameter.

Example 5: Get deleted applications filter by display name

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -Filter "displayName eq 'Contoso Fieldglass'" | Select-Object Id, AppId, DisplayName, SignInAudience, PublisherDomain, DeletedDateTime, DeletionAgeInDays | Format-Table -AutoSize

id                                   appId                                displayName        signInAudience publisherDomain        deletedDateTime       DeletionAgeInDays
--                                   -----                                -----------        -------------- ---------------        ---------------       -----------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb bbbbbbbb-1111-2222-3333-cccccccccccc Contoso Fieldglass AzureADMyOrg   contoso.com          2/12/2025 11:07:07 AM  5

This cmdlet retrieves deleted applications having specified display name.

Example 6: Get a specific deleted application using Application ID

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -ApplicationId aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb | Select-Object Id, AppId, DisplayName, DeletedDateTime, DeletionAgeInDays | Format-Table -AutoSize

Id                                   DisplayName           AppId                                DeletedDateTime       DeletionAgeInDays
--                                   -----------           -----                                ---------------       -----------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb Contoso Fieldglass    bbbbbbbb-1111-2222-3333-cccccccccccc 2/14/2025 11:07:07 AM                 10

This cmdlet retrieves deleted applications with deletion age in days.

Parameters

-All

List all pages.

Type:System.Management.Automation.SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Filter

Retrieve only those deleted applications that satisfy the filter.

Type:System.String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Property

Specifies properties to be returned

Type:System.String[]
Aliases:Select
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SearchString

Retrieve only those applications that satisfy the -SearchString value.

Type:System.String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Top

The maximum number of applications returned by this cmdlet. The default value is 100.

Type:System.Int32
Aliases:Limit
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.String

System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

Outputs

System.Object