Do I still need to run sysprep after cloning a vm in Azure?

Lenvain, Peter 0 Reputation points
2025-01-03T13:49:07.74+00:00

Hi

I want to create a clone of my current on-prem domain-joined application server towards Azure.

The Azure-one will be renamed and will remain in the same domain.

The on-prem wil be powered on again after the Azure-one has been renamed.

Will I need to run sysprep (or any other tool) in order not to get double SIDs?

Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
848 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pranay Reddy Madireddy 1,395 Reputation points Microsoft Vendor
    2025-01-03T19:46:50.3833333+00:00

    Hi Lenvain, Peter

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    Running Sysprep prepares the operating system by removing unique identifiers like the SID, which helps avoid conflicts when both the original and cloned servers are online in a domain.

    Sysprep prepares the system for cloning by removing specific data and creating a new SID when the cloned server joins the domain.

    Open an elevated command prompt (run as administrator) and execute the following command:

    sysprep /generalize /oobe /shutdown

    This command prepares the system for cloning and turns it off.

    Use your virtualization platform's tools (such as VMware or Hyper-V) to clone the VM after running Sysprep.

    Import the cloned VM into Azure, power it on, and rename it as needed.

    Before starting the cloned VM, disconnect the network adapter to avoid conflicts. After the VM starts, log in as a local admin and remove it from the domain if needed. Then, reconnect the network adapter and join the server back to the domain to get a new SID.

    If you have any further queries, do let us know.


    If the answer is helpful, please and "Upvote it".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.