Reputation: 741
I would reduce my OS disk ( Linux : CentOS) from 128 Gb to 64Gb to save cost.
when i go to portal and resize : a error message is showing :
Failed to update disk 'XXXXXXXXXXXXXXXXXX'. Error: The disk/snapshot resource with id hayppyness-preprod/providers/Microsoft.Compute/disks/XXXXXXXXXXXXXXX cannot be resized down. Reducing disk/snapshot size is not supported in Azure to prevent data loss. If you do need to reduce the size of the disk, please create new snapshot/disks with the appropriate size. More information is available at https://aka.ms/AzureDisksFAQ.
but no information provided by the link.
I can't open a support request because my support plan if Free.
Can someone can help me please ?
Upvotes: 1
Views: 2474
Reputation: 23111
At the moment, we cannot directly shrink or downsize the azure managed disks. Azure does not support the operation. For more details, please refer to the document.
If we want to downsize the azure disk. We need to export the disk as vhd then shrink the exported VHD. At last, create a new managed disk from the VHD and create a new VM from the new managed disk. For more details, please refer to here and here
Upvotes: 2