Hello Ramona Istrate,
Welcome to Microsoft Q&A Forum. Thanks for posting your query here!
I understand that you would like to Migrate unmanaged disks to managed disks.
If you are encountering difficulties with the migration task, we advise you to deallocate the virtual machine. Please be informed that the primary consequence of this action is the downtime necessary to deallocate the VM and subsequently reattach it to the new managed disks. The exact downtime depends on the VM size, disk size, and network conditions. Expect some downtime, typically measured in minutes.
However, we recommend you follow the below steps to Migrate unmanaged disks
- Perform a full VM backup.
- Deallocate the VM using the Azure portal, Azure CLI, or PowerShell.
- Use the "Migrate to managed disks" option in the Azure portal or the appropriate command-line tool to initiate the migration.
- After the migration is complete, re-create the VM using the new managed disks.
- Thoroughly test the VM's functionality after the migration to ensure everything is working as expected.
- For most VMs, the downtime for this process should be within a few minutes.
- The size of the disks, network conditions, and the overall workload on the Azure platform can influence the actual downtime.
Please be informed that There might be a very brief interruption in service while the VM is deallocated and reattached. Before migration, ensure all applications on the VM are in a consistent state to minimize the risk of data corruption.
Answers for your questions.
- Yes, the migration process automatically creates new managed disks.
- The migration process essentially "converts" the existing unmanaged disks into managed disks. The data itself is not physically transferred; the underlying storage is changed.
- Data loss is minimal if the migration process is performed correctly, and you have a recent backup.
Additional information: Below is the Documentation on Backup and disaster recovery for Azure unmanaged disks
https://learn.microsoft.com/en-us/azure/virtual-machines/page-blobs-backup-and-disaster-recovery
Let me know if you have any further quarries we are here at your service!