Hello @酒井 友良,
Based on your query, I understand you want to back up Microsoft Entra Admin Center information before upgrading.
Here are the steps you need to follow:
- Before upgrading, you can export the current Azure AD Connect configuration:
- Open Azure AD Connect on the server.
- Click “View Current Configuration” and take screenshots of all settings.
- Open PowerShell and run the following command to export settings: Start-ADSyncSyncCycle -PolicyType Initial
- Save the exported settings for reference.
You also need to export the current Users, Groups, and Policies. Please follow the commands below to export them:
Connect-MgGraph -Scopes "Directory.Read.All"
Get-MgUser | Export-Csv -Path "C:\Backup\AzureAD_Users.csv" -NoTypeInformation
Get-MgGroup | Export-Csv -Path "C:\Backup\AzureAD_Groups.csv" -NoTypeInformation
Get-MgConditionalAccessPolicy | Export-Csv -Path "C:\Backup\AzureAD_CA_Policies.csv" -NoTypeInformation
- Additionally, Azure AD Connect stores data in a local SQL Express database. You can back it up using SQL Server Management Studio or PowerShell. If you prefer PowerShell, use the following commands:
sqllocaldb stop "ADSync"
Copy-Item "C:\Program Files\Microsoft Azure AD Sync\Data\ADSync.mdf" "C:\Backup\ADSync.mdf"
Copy-Item "C:\Program Files\Microsoft Azure AD Sync\Data\ADSync_log.ldf" "C:\Backup\ADSync_log.ldf"
sqllocaldb start "ADSync"
For security reference, please go to sign-in logs and audit logs and export them as CSV.
If possible, take a full VM snapshot or system backup of the server hosting Azure AD Connect before upgrading.
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment"