How to remove AD connect from portal after onprem AD was deleted.

Peter Vrba 1 Reputation point
2022-06-11T18:43:17.337+00:00

Hi Guys,

How to remove AD connect from portal after onprem AD was deleted.
OnPrem AD was just Lab VM and it was deleted.
Now I cannot delete AD groups and AD Sync from portal.
(I was able to delete users...)

Thanks

Peter

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

1 answer

Sort by: Most helpful
  1. Eric Woodruff 266 Reputation points
    2022-06-12T02:23:51.197+00:00

    You will want to follow the steps in this article:

    https://learn.microsoft.com/en-us/microsoft-365/enterprise/turn-off-directory-synchronization?view=o365-worldwide

    Which covers running the command

    Set-MsolDirSyncEnabled -EnableDirSync $false

    Which will disassociate the Azure AD tenant from your Azure AD Connect installation. Note that you don't need to have Azure AD Connect still in existence, the command is part of the MSOnline PowerShell module.

    If this answers your question, please accept the answer.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.