A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
Welcome to Microsoft Q&A.
Hello @Mahavir Saroj , I hope you are doing well.
Based on your migration scenario, it is generally not recommended to run Sysprep on a VM migrated using Azure Migrate when the intention is to preserve the existing operating system, applications, and configuration. What is happening is that Azure Migrate performs a lift-and-shift migration and creates a copy of the source machine. Running Sysprep would generalize the operating system, remove machine-specific information, and may impact application configurations, local profiles, and domain-related settings.
Regarding the SID concern, modern versions of Windows and Active Directory do not use the machine SID as the primary identifier for domain trust relationships. The computer account object in Active Directory and its associated credentials are what identify the machine within the domain.
Please check the following:
- If both the on-premises VM and Azure VM will coexist, ensure the Azure VM is renamed inside the guest OS before joining or reconnecting it to the domain.
Do not allow both machines to use the same computer name in the same Active Directory domain.
If the Azure VM is intended to become a separate Acceptance environment, create a new computer account by renaming the VM and then joining it to the domain.
Validate application-specific licensing or security mechanisms, as some applications may use machine identifiers that are independent of Windows SIDs.
Regarding your specific questions:
-
Should you run Sysprep?-
TypicallyNo, unless your goal is to create a generalized template image rather than preserve the migrated workload. -
Will identical machine SIDs cause Active Directory issues?-
GenerallyNo. Duplicate machine SIDs are not typically a problem in Active Directory environments. The larger risk is having duplicate computer names or reusing the same domain computer account.
-
-
-
Will both VMs being online cause conflicts?-
They can if they share the same hostname, IP configuration, or Active Directory computer account. Renaming the Azure VM and ensuring it has its own domain identity avoids these conflicts.
-
For additional information, please review:
Azure Migrate overview: https://learn.microsoft.com/azure/migrate/migrate-services-overview
Azure Migrate server migration: https://learn.microsoft.com/azure/migrate/server-migrate-overview
Sysprep overview: https://learn.microsoft.com/windows-hardware/manufacture/desktop/sysprep--system-preparation--overview
Mark Russinovich on machine SID duplication: https://techcommunity.microsoft.com/blog/askds/the-machine-sid-duplication-myth-and-why-sysprep-matters/399243
I hope this information helps.
If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily.