Hi @Rakesh Kumar,
Welcome to the Microsoft Q&A platform!
Migrating on-premises Exchange distribution groups to Exchange Online involves multiple steps. Here’s a high-level overview of the process:
- Prepare for Migration:
- Ensure that your on-premises environment and Exchange Online are properly configured.
- Verify that your on-premises Active Directory is properly synchronized with Azure AD using Azure AD Connect.
- Verify you have sufficient permissions to perform these tasks both on-premises and in Exchange Online.
- Directory Synchronization:
- If you haven't done so already, set up Azure AD Connect to synchronize your on-premises Active Directory with Azure Active Directory (AAD). This will synchronize all your distribution groups to Azure AD.
- Run a synchronization and ensure all objects are syncing correctly.
- Verify Group Data:
- Confirm that the distribution groups and their memberships are correctly synchronized to Azure AD. You can use the Microsoft 365 admin center or PowerShell to verify this.
- Convert to Cloud-Managed Groups (if necessary):
- If you want to manage the groups in the cloud instead of on-premises post-migration, you might need to convert the synchronized distribution groups to cloud-managed groups. This process involves creating new groups in Exchange Online and migrating the members.
- You can use PowerShell scripts to automate parts of this process.
- Export Group Information:
- Use PowerShell to export information about your on-premises distribution groups.
Get-DistributionGroup -ResultSize Unlimited | Export-Csv -Path "C:\DistributionGroups.csv"
- Create Groups in Exchange Online:
- Use a PowerShell script to create these groups in Exchange Online.
$groups = Import-Csv -Path "C:\DistributionGroups.csv"
foreach ($group in $groups) {
New-DistributionGroup -Name $group.Name -Alias $group.Alias -PrimarySmtpAddress $group.PrimarySmtpAddress
}
- Add Members to Groups:
- After creating the groups in Exchange Online, add members to these groups based on the exported data.
foreach ($group in $groups) {
$members = Get-DistributionGroupMember -Identity $group.Identity
foreach ($member in $members) {
Add-DistributionGroupMember -Identity $group.Name -Member $member.PrimarySmtpAddress
}
}
- Verify Membership:
- Once the groups are created and members are added, verify the group membership to ensure everything has migrated correctly.
- Update or Decommission On-Premises Groups:
- Update your on-premises groups' attributes to reflect their migration status or decommission them if they are no longer needed on-premises.
- Monitor and Test:
- Monitor the new distribution groups in Exchange Online to ensure they are functioning as expected.
- Conduct tests to ensure email flows correctly to and from the new groups.
This is a simplified overview, and the actual steps may vary depending on your specific environment and requirements.
Please feel free to contact me if you have any queries.
Best,
Jake Zhang