We are seeing the error:
Exception calling "CreateMoveMailboxToO365Request" with "4" argument(s): "Parameter set cannot be resolved using the specified named parameters." Stack trace: at ScriptBlock, No file: line 1
We are using the PowerShell script below where we have replaced mail.mycompany.com with our on-prem Exchange server and mycompany.mail.onmicrosoft.com with our O365 domain. We've verified the Client Access role is configured and the Mailbox Replication Service Proxy (MRSProxy) service is running on the on-prem server:
$Context.TargetObject.CreateMoveMailboxToO365Request("mail.mycompany.com", "mycompany.mail.onmicrosoft.com", 0, 0)
What are we missing?