Description
Is your feature request related to a problem? Please describe.
Currently, Azure does not support a direct migration from Premium SSD v2 or Ultra SSD to other disk types, as detailed here. This limitation prevents the use of the native disk update feature for those looking to switch storage types from Premium SSD v2 or Ultra Disks.
Describe the solution you'd like
Although direct support is not available yet, changing the disk type is feasible by utilizing snapshots. If you're transitioning from Premium SSD v2 or Ultra Disks, the update_disk
method should do the following steps:
- unmounting the disk
- creating a snapshot, ensuring the
completionPercent
reaches 100 - generating a new disk from this snapshot
- mounting the new disk
- removing the snapshot again
Pending Task: evaluate and compare the efficiency of using regular copy methods versus snapshots.
Additional context
This request is a continuation of issue #697 and has been suggested by @MSSedusch.