Hi petur borisov,
Welcome to Microsoft Q&A, thanks for posting your query.
Migrating Unmanaged disk to managed disk for the SQL servers with in the availability set, required careful preparation to reduce the server interruption. Here are some points based on your query.
- Converting an availability set to managed disks shouldn't effect on the virtual machines while they are running. It's is best to do this process during the maintenance window to avoid the unexpected issues. When you convert availability set to managed disk, the virtual machine will continue to running on the current unmanaged disk without any issues. The conversion wont effect the VM's. After the conversion, you can start migrating each virtual machine to managed disks individually. This should not impact on the other VM's in the availability sets during the process.
- The script provided in the documentation is designed to reduce the interruption to the services during the migration. It stops the VMs, converts the disks to the managed disks and then restart the VMs automatically. The script does not explicitly include a Start-AzVM command, but it does start the VMs as part of the migration process.
- Yes, you can perform the migration manually. This involves first converting the availability set, then shutting down SQL-01, migrating its disk to the managed disk and restarting it, and moving the data base roles before doing the same process with the SQL-02. In this process ensures that the connectivity to your SQL servers remains throughout the process.
- You don't need to shut down all the servers in the availability set to convert it to managed disks. This conversion can be done without effecting the servers as long as no direct impact on them.
Concerns and considerations:
- Make sure to perform a complete backup for your SQL servers before the migration starts. In this way you can restore your data if any issue occurs during the process.
- Ensure that data remains consistent throughout the migration to prevent the data loss or information. Minimize the downtime for both SQL production servers during the migration, you have to plan migration carefully.
- Perform comprehensive testing in a non-production environment to identify potential issues and ensure the migration process goes smoothly.
Reference:
Migrate Azure VMs to Managed Disks - Azure Virtual Machines | Microsoft Learn
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.