When running the Active Directory Environment Discovery task, the following error occurs:
CDS.Library.AbandonedException: Could not find any available CDS PowerShell users in elapsed:00:10:03.9507505
at CDS.AzureLibrary.CDSPowerShellPool.GetPowerShell(Boolean useTeams, Boolean useAzureAd, Boolean importExchange)
at CDS.AzureLibrary.AzureAD.<GetChangedIds>d__36.MoveNext()
at CDS.Model.Office365.<GetDeltaObjectsByType>d__72.MoveNext()
at CDS.Model.Office365.<GetDeltaObjects>d__68.MoveNext()
at CDS.Model.PushJob.Run(IWebServiceFactory webServiceFactory, CancellationToken cancellationToken)
at CDS.Model.Job.Execute(IWebServiceFactory webServiceFactory, CancellationToken cancellationToken)
at CDS.Model.Agent.ExecuteJobs(CancellationToken cancellationToken)
The error indicates that the environment is blocking access for the service account used by ODM. Common reasons include:
To resolve this issue:
Check MFA Settings
Review Conditional Access Policies
Verify Service Account Credentials
Enable PowerShell Remoting
Exclude ODM Accounts from MFA
BinaryTreeCDSPowerShell
Note: If your tenant enforces Security Defaults, MFA may still apply even if exclusions are set. Adjust Security Defaults as needed.