If you need to disable sync, you can use this doc using the mggraph module instead:
Unable to Connect to MSOlService
I am trying to troubleshoot duplicate user and group objects from older AD instance that was connected to by Entra ID tenant for identities to sync from on prem to Entra. I understand that I need to disable DirSync but every time I try to connect to msolservice, I get the error below.
I have tried everything to troubleshoot. I tried disabling the azure connector, limiting scope to an OU that had no users or groups, then uninstalled MSOL module, removed files from the powershell module directory, same error.
I even tried moving the connecter to another server which only caused more duplicate objects. The only doc I found is this link but I do not see that service that it is referring to anywhere.
Anyone know how I can resolve this connect issue?
Connect-MsolService : One or more errors occurred.
At line:1 char:1
- Connect-MsolService
-
+ CategoryInfo : OperationStopped: (:) [Connect-MsolService], AggregateException + FullyQualifiedErrorId : System.AggregateException,Microsoft.Online.Administration.Automation.ConnectMsolService