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

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,683 questions
No comments
{count} votes

1 answer

Sort by: Oldest
  1. Eric Woodruff 256 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.