I did make DirSync Server to install using Azure AD Connect , to configure this directory sync , I went to office 365 portal admin center, it needs office 365 tenant admin credentials and active directory enterprise admin credentials.
So as to restrict expire office 365 test tenant soon, I need to clean up all office 365 test environment, before this job I did permanently remove sharepoint site collection, then now I’ll clean up office 365 dirsync environment. To deactivate dirsync environment, need to do deactivate dirsync using “https://technet.microsoft.com/en-us/library/dn144760.aspx”, it explain there are two ways to deactivate portal or using windows powershell
Deactivate Dirsync on portal : It needs to go to Users page on office 365 admin Portal , Go to active users then click to Manage button Click the “Deactivate” Button from this page,
Deactivate DirSync using Windows PowerShell
- Install and run the Microsoft Azure Active Directory Module for Windows PowerShell
- Run the following cmdlet : Set-MsolDirSyncEnabled -EnableDirSync $false
- To verify that directory synchronization was deactivated, run the following cmdlet: (Get-MsolCompanyInformation).DirectorySynchronizationEnabled , when this cmdlet returns false, directory synchronization has been disabled. It may take 72 hours for deactivation to be completed. The duration depends on the number of objects that are in your Azure AD tenant.
Then remove Azure AD Connect from DirSync Server
Check Uninstall Windows Azure AD Connect as url : https://social.msdn.microsoft.com/Forums/azure/en-US/1e3b64ae-dccc-415d-9cc9-36c3ff17c0f8/uninstall-windows-azure-ad-connect-108641?forum=WindowsAzureAD
Needs to show up in-details
As a result, if you see active users on office 365 portal page, all accounts are showed to “In Cloud” instead of showing “Active Directory Synced“