Concepts

To migrate mailboxes and related data from one Microsoft 365 tenant to another, you can follow these steps to create and manage a cross-tenant migration batch effectively and efficiently.

Step 1: Prepare the Source and Target Tenants

Before initiating the migration, ensure that both the source and target tenants are properly set up. This includes verifying domain ownership, configuring user accounts, and establishing the necessary permissions for migration. Ensure that both tenants have the required licenses for the migration process.

Step 2: Set Up Permissions and Trust

To grant permissions and establish trust between the source and target tenants, create and configure a security principal in both tenants. This security principal will allow access to mailboxes during the migration process. The required permissions include ApplicationImpersonation and FullAccess.

Here’s an example of PowerShell code to create a security principal using the New-ManagementRoleAssignment cmdlet:

New-ManagementRoleAssignment -Role "ApplicationImpersonation" -User "MigrationAdmin" -CustomRecipientWriteScope "Migration"

Step 3: Create the Migration Endpoint

In the target tenant, set up a migration endpoint that connects to the source tenant. This endpoint allows secure communication between the two tenants for mailbox migration. You can create a migration endpoint using the Exchange admin center (EAC) or PowerShell.

Here’s an example of PowerShell code to create a migration endpoint:

New-MigrationEndpoint -IMAP -Name "SourceEndpoint" -RemoteServer 'source.imapserver.com' -ConnectionSettings $connectionSettings -Authentication Basic

Step 4: Create the Migration Batch

Create a migration batch to specify the mailboxes to migrate and the target destination. A migration batch is a logical grouping of mailboxes that can be managed together during the migration process. You can create a migration batch using the Exchange admin center or PowerShell.

Here’s an example of PowerShell code to create a migration batch:

New-MigrationBatch -Name "CrossTenantBatch" -SourceEndpoint 'SourceEndpoint' -TargetDeliveryDomain 'target-domain.com' -CSVData ([System.IO.File]::ReadAllBytes("C:\MigrationData\migrate.csv"))

In this example, “migrate.csv” is a CSV file containing mailbox details, such as email addresses and aliases, for the mailboxes you want to migrate.

Step 5: Start and Monitor the Migration

Once the migration batch is created, you can start the migration process. Use the Start-MigrationBatch cmdlet to begin the migration. It’s essential to monitor the migration progress to ensure it completes successfully.

Here’s an example of PowerShell code to start a migration batch:

Start-MigrationBatch -Identity "CrossTenantBatch"

To monitor the status of the migration batch, you can use the Get-MigrationBatch cmdlet.

Step 6: Complete the Migration

After the migration batch finishes processing, perform additional steps to complete the migration. This typically involves updating DNS records, rerouting email traffic, and verifying the functionality of the migrated mailboxes.

Step 7: Remove the Migration Batch

Once the migration is complete and verified, remove the migration batch and related migration data. Use the Remove-MigrationBatch cmdlet for this purpose.

Here’s an example of PowerShell code to remove a migration batch:

Remove-MigrationBatch -Identity "CrossTenantBatch" -Confirm:$false

By following these steps, you can successfully create and manage a cross-tenant migration batch in Microsoft 365 Messaging. Refer to Microsoft documentation for more detailed guidance and additional options for managing the migration process.

Answer the Questions in Comment Section

Which command is used to create a cross-tenant migration batch in Microsoft 365 Messaging?

a) New-MigrationBatch
b) Start-MigrationBatch
c) Create-MigrationBatch
d) Initiate-MigrationBatch

Correct answer: a) New-MigrationBatch

What is the primary purpose of a cross-tenant migration batch?

a) To move mailboxes and other data between different Microsoft 365 tenants.
b) To synchronize mailbox permissions across multiple tenants.
c) To enable cross-tenant calendar sharing.
d) To consolidate multiple Microsoft 365 tenants into a single tenant.

Correct answer: a) To move mailboxes and other data between different Microsoft 365 tenants.

Which migration endpoint type is required to create a cross-tenant migration batch?

a) IMAP Endpoint
b) Exchange Online Endpoint
c) Outlook Anywhere Endpoint
d) Exchange Web Services (EWS) Endpoint

Correct answer: b) Exchange Online Endpoint

Which parameter is used to specify the source and target domains for a cross-tenant migration batch?

a) -SourceEndpoint
b) -TargetEndpoint
c) -SourceCredential
d) -TargetCredential

Correct answer: a) -SourceEndpoint

How can you check the progress and status of a cross-tenant migration batch?

a) Get-MigrationBatch
b) Check-MigrationBatchStatus
c) Test-MigrationBatch
d) Verify-MigrationBatch

Correct answer: a) Get-MigrationBatch

Which command is used to remove a cross-tenant migration batch?

a) Remove-MigrationBatch
b) Stop-MigrationBatch
c) Delete-MigrationBatch
d) Disable-MigrationBatch

Correct answer: a) Remove-MigrationBatch

Can a user continue to access their mailbox during a cross-tenant migration?

a) No, the mailbox is inaccessible until the migration is complete.
b) Yes, the user can access their mailbox but may experience intermittent disruptions.
c) Yes, the user can access their mailbox without any disruptions.
d) No, the user must be assigned a temporary mailbox during the migration.

Correct answer: b) Yes, the user can access their mailbox but may experience intermittent disruptions.

What type of mailbox data can be migrated using a cross-tenant migration batch?

a) Emails only
b) Calendar items only
c) Contacts and tasks only
d) Emails, calendar items, contacts, and tasks

Correct answer: d) Emails, calendar items, contacts, and tasks

Can a cross-tenant migration batch be paused and resumed at a later time?

a) Yes, the migration batch can be paused and resumed at any time.
b) No, once a migration batch is started, it cannot be paused or resumed.
c) Yes, but only if the migration batch is in the “Synced” state.
d) No, the migration batch must be completed without any interruptions.

Correct answer: b) No, once a migration batch is started, it cannot be paused or resumed.

Can mailbox permissions be migrated as part of a cross-tenant migration batch?

a) Yes, mailbox permissions are automatically migrated along with the mailbox data.
b) No, mailbox permissions must be manually configured after the migration.
c) Yes, but only if the source and target tenants are in the same Active Directory forest.
d) No, mailbox permissions cannot be migrated across different Microsoft 365 tenants.

Correct answer: b) No, mailbox permissions must be manually configured after the migration.

0 0 votes
Article Rating
Subscribe
Notify of
guest
24 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Sita Acharya
1 year ago

How do I handle large mailboxes during migration?

Hugo Iglesias
9 months ago

This blog simplified a lot of complex details. Appreciate it!

Jerusha Van der Leer

What are the options if the migration batch fails?

Luis Núñez
1 year ago

Managed to migrate 1000+ mailboxes successfully, thanks for the guide.

Marta Mišković
11 months ago

Can you automate cross-tenant migration?

Emilio Esteban
1 year ago

Very informative but found a few typos.

Ayşe Evliyaoğlu
1 year ago

How does licensing work in cross-tenant migration?

Harold Steward
11 months ago

Do we need to disable any security features before migration?

24
0
Would love your thoughts, please comment.x
()
x