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.
Table of Contents
Get-AzureADMSDeletedDirectoryObject
You can use this PowerShell command to get the soft deleted AD object from the Azure Active Directory.
Syntax of Get-AzureADMSDeletedDirectoryObject
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-ba174f5b8f08After 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.applicationYou can see the same output as below.

Get-AzureADMSDeletedDirectoryObject PowerShell – Video Tutorial
You can also check out a video tutorial on the Get-AzureADMSDeletedDirectoryObject PowerShell command.
Final Thoughts
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.

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
