You cannot turn off Active Directory synchronization
source link: https://www.michev.info/Blog/Post/1797/you-cannot-turn-off-active-directory-synchronization
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
You cannot turn off Active Directory synchronization
This issue seems to be popping up on the different communities, so I though it’s time to put a blog post on it out there. In short, you try to enable (or disable) Directory synchronization in Office 365, and you are greeted by the following error message:
PS C:\>
Set-MsolDirSyncEnabled
-EnableDirSync
$false
Set-MsolDirSyncEnabled
: You cannot turn off Active Directory synchronization.
At line:1 char:1
+
Set-MsolDirSyncEnabled
-EnableDirSync
$false
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [
Set-MsolDirSyncEnabled
], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.DirSyncStatusChangeNotAllowedException,Microsoft.Online.Administration.Automation.SetDirSyncEnabled
The DirSyncStatusChangeNotAllowedException error in particular means that you have changed the status recently, and the service is simply preventing you from changing it back too soon. The bad news is – there’s nothing you can do about it but wait. There is a preset window on the service side which you cannot bypass, even if the previous change you made has already successfully propagated (as in, you can see the correct status via Get-MSOLCompanyInformation | select DirectorySynchronizationStatus).
Microsoft does not disclose the amount of time you have to wait, but in my testing it seems to be around 12 hours or so. Note that the “propagation” delay is still a factor, as described in this support article, and in large tenants can take a day or more! The error message detailed above is different and will occur even if the DirSync status has been updated. It’s a simple block on Microsoft’s side to prevent you from changing the status too often.
And if you are troubleshooting issues with DirSync activation for a test/trial tenant, don’t forget that you need to have at least one domain validated!
Recommend
-
25
SQL Error – The operation cannot be performed on a database with database snapshots or active DBCC replicas Today while restoring a Database and Dropping it I came across following errors: Error #1....
-
2
Cannot say cannot say turn #math #chinese Expected solvable difficulty 1sample+: experienced solverskeywor...
-
256
warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory ...
-
1
How do you turn off the internet?How do you turn off the internet?How easy would it be for a government to block access to one of our biggest sources of news and i...
-
3
17 December 2021 / Nexus Nexus 安装启动失败:cannot create directory '../sonatype-work/nexus3/log': Permiss...
-
0
-
1
Home ...
-
5
Home » Games » FIFA 23 lets you turn off commentary pointing out how bad you are
-
8
Manage directory synchronization settings via the Graph API After years of unsuccessful attempts to deprecate the good old MSOnline PowerShell module and subsequent postponements for its end of life, Microsoft seems to...
-
1
This post will cover “cannot open shared object file: no such file or directory” messages seen at startup for PHP applications. Prerequisites IMPORTANT: Make sure App Service Logs are enabled fi...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK