Hello,
Thanks for posting your question in the Microsoft Q&A forum.
If your goal is to move the VM to a new VNet while preserving user profiles and data,creating a new VM with the existing disk is the most straightforward approach. This ensures that the VM is correctly configured in the new VNet without losing any data or configurations.
However from your latest comment I understood the error message indicates that your VM is in a generalized state, which means it has been sysprepped (generalized) to remove machine-specific information (e.g., user profiles, SIDs, etc.). This is typically done when creating a VM image for reuse. Unfortunately, this process is irreversible, and the VM can no longer be started in its original state.
However, there is still hope for recovering your data. 🤗 Yes, you can recover data from the OS disk and data disks attached to the VM, below are the steps:
1. Identify the Disks
- Go to the Azure portal and navigate to the VM's resource group.
- Locate the OS disk and any data disks associated with the VM. These disks are still intact and contain your data.
2. Create a New VM and Attach the Disks
- Create a new VM in the same region as the disks.
- During the creation process, attach the existing OS disk and data disks to the new VM.
- OS Disk: Attach it as the OS disk for the new VM.
- Data Disks: Attach them as additional data disks.
- OS Disk: Attach it as the OS disk for the new VM.
3. Access the Data
- Start the new VM and log in.
- Navigate to the attached disks to recover your data:
- OS Disk: Check the C:\Users folder for user profiles and data.
- Data Disks: Access the drives to retrieve any stored files.
- OS Disk: Check the C:\Users folder for user profiles and data.
4. Export Data (Optional)
- If you don't want to keep the new VM, you can export the data to another location (e.g., Azure Storage, another VM, or on-premises) and then delete the VM.
Does the response help answer your question? Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution. Thanks 🙂 Thanks for posting your question in the Microsoft Q&A forum.