Get-AzureADMSDeletedDirectoryObject

As part of this Azure PowerShell article, we will learn the syntax and usage of the Get-AzureADMSDeletedDirectoryObject PowerShell command with examples of how to use this command.

Get-AzureADMSDeletedDirectoryObject

You can use this PowerShell command to get the soft deleted AD object from the Azure Active Directory.

Syntax

Below is the syntax of the Get-AzureADMSDeletedDirectoryObject PowerShell command.

Get-AzureADMSDeletedDirectoryObject -Id <String>

Let’s discuss a few examples of how to use the Get-AzureADMSDeletedDirectoryObject PowerShell command.

Example

Execute the below PowerShell command to get the specified deleted AD object from the Azure Active Directory.

Get-AzureADMSDeletedDirectoryObject -Id ef68982c-5978-4b9b-8589-ba174f5b8f08

After executing the above PowerShell Command, I got the below-expected output successfully.

PS C:\WINDOWS\system32> Get-AzureADMSDeletedDirectoryObject -Id ef68982c-5978-4b9b-8589-ba174f5b8f08

Id                                   OdataType                   
--                                   ---------                   
ef68982c-5978-4b9b-8589-ba174f5b8f08 #microsoft.graph.application

You can see the same output as below.

Get-AzureADMSDeletedDirectoryObject

You can also check out a video tutorial on the Get-AzureADMSDeletedDirectoryObject PowerShell command.

Final Thoughts

Well, in this Azure PowerShell article, we discussed the syntax and usage of the Get-AzureADMSDeletedDirectoryObject PowerShell command with an example of how to use this particular command.