Restore deleted Device from Entra ID

Pradeep Narangoda 0 Reputation points
2024-05-15T05:39:13.36+00:00

Hi, I accidentally deleted the device from Entra ID. How can I restore that device?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,802 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 96,836 Reputation points MVP
    2024-05-15T06:47:13.0766667+00:00

    Unfortunately, you cannot, as devices are not supported for the soft-delete functionality. As mentioned in the documentation:

    Currently, deleted items functionality is only supported for the application, servicePrincipal, externalUserProfile, group, administrative unit, pendingExternalUserProfile, and user resources.

    0 comments No comments

  2. Sandeep G-MSFT 14,916 Reputation points Microsoft Employee
    2024-05-16T03:58:10.95+00:00

    @Pradeep Narangoda

    Thank you for posting this in Microsoft Q&A.

    As Vasil Michev mentioned above there is no option to recover deleted device in Entra ID. Recycle bin is not yet supported and you can’t recover deleted devices, it’s a feature that MSFT working on.

    You can refer the same in https://techcommunity.microsoft.com/t5/microsoft-entra/how-to-recover-or-re-add-device/m-p/1250422

    However, if you are trying recover and login to any of the Entra ID joined device you can try to follow below steps,

    Open the command prompt as an administrator

    Enter dsregcmd /forcerecovery (You need to be an administrator to perform this action).

    Click “Sign in” in the dialog that opens up and continue with the sign in process.

    Sign out and sign in back to the device to complete the recovery.

    https://docs.microsoft.com/en-us/azure/active-directory/devices/faq

    Just for good measure I gave user temporarly administrator priviledges & followed the steps initially to remove the device

    e.g.

    1. dsregcmd /debug /leave
    2. Reboot
    3. Add user to local-admins
    4. Log-off & on again

    You can also submit feedback in Azure feedback portal.

    https://feedback.azure.com/d365community/forum/22920db1-ad25-ec11-b6e6-000d3a4f0789

    Let us know if you have any further questions.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments