How to resize the Azure DISK OS szire

AIACloudSupport16 0 Reputation points

We want to export the windows image from azure to tencent cloud, but the Image size is 127G,

I want to reduce the OS disk size from 127G to 60G, can anyone help me to resize the OS disk.


Narendra K

Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
587 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vahid Ghafarpour 20,030 Reputation points

    Thanks for posting your question in the Microsoft Q&A forum.

    You can use resize2fs for Linux or Disk Management for Windows to resize the file system.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **

    0 comments No comments

  2. Anand Prakash Yadav 7,540 Reputation points Microsoft Vendor

    Hello AIACloudSupport16,

    Thank you for posting your query here!

    Resizing the OS disk of an Azure virtual machine (VM) involves several steps. Directly reducing the size of an existing Azure OS disk is not supported. Instead, you can create a new smaller OS disk by following these steps:

    Shrink the Volume within the OS: Shrink the volume size within the Windows OS to ensure the actual data size is less than the desired new disk size.

    Create a Snapshot: Create a snapshot of the OS disk.

    Create a New Managed Disk: Create a new managed disk from the snapshot with the desired smaller size.

    Create a New VM: Create a new VM using the new managed disk.

    For further reference and detailed steps, you may refer:

    Do 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.

    0 comments No comments