Great work! This is long expected!
I just gave the process a try and failing to migrate the mailboxes. Getting error - "MigrationTransientException: The call to 'https://bn8pr14mb2497.namprd14.prod.outlook.com/mrs/Microsoft.Exchange.MailboxReplicationService.ProxyService/ OAuth' failed. Error details: Access is denied.. --> The call to 'https://bn8pr14mb2497.namprd14.prod.outlook.com/mrs/Microsoft.Exchange.MailboxReplicationService.ProxyService/OAuth' failed. Error details: Access is denied.. --> Access is denied."
Any help would be greatly appreciated!
I was able run the source and tenant scripts successfully but had to make a few adjustments in the SetupCrossTenantRelationshipForTargetTenant script as detailed below:
Included AzureRM.Storage in the Import-AzureModules function as Get-AzureRmStorageAccount command failed without it.
Included the command "Enable-OrganizationCustomization" if the (Get-OrganizationConfig).IsDehydrated is True as New-OrganizationRelationship command fails if the tenant is Hydrated.
New-OrganizationRelationship command did not include the -OAuthApplicationId $appId parameter, so added that too.