How to Extend a drive on an Azure VM

ZBal 5 Reputation points
2025-01-07T21:43:08.6333333+00:00

Guys,

we have a VM on azure that runs sql server. Recently I increased the disc size of F drive from 1TB to 2TB on the azure portal. When I went to extend the drive from Disc Managment tool - I get the message that says I will end up converting the disc from basic to dynamic and some other warnings.

To overcome this the next guidance I was given by someone was to convert the drive first to ntfs... I did that and now my problems have got worse.. I dont even see an option to extend the F drive. What am I doing wrong? how do I extend the disc size of drive F.

Thanks in advance for your help.

User's image

User's image

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,279 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,368 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Policht 32,510 Reputation points MVP
    2025-01-07T22:08:20.41+00:00

    You apparently extended a different disk (disk 2) from the one you intended to extend. You should see unallocated space to the right of the existing partition on the disk - that would allow you to extend it. Follow

    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/expand-disks


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


  2. Mounika Reddy Anumandla 1,955 Reputation points Microsoft Vendor
    2025-01-08T05:56:59.9+00:00

    Hi ZBal,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    May I know if you have a storage pool configured?
    User's image

    Not supported: resizing the underlying storage used by Storage Spaces Direct. If you are running Storage Spaces Direct in a virtualized storage environment, including in Azure, resizing or changing the characteristics of the storage devices used by the virtual machines isn't supported and will cause data to become inaccessible.

    Looks like, to use Storage Spaces, you can add more Disks - but can't resize an existing one, to increase the pool.

    Ref: https://learn.microsoft.com/en-us/answers/questions/1315027/convert-to-dynamic-disk-when-i-extend-disk-on-vm

    As Marcin Policht said, the unallocated space must be immediately next to the volume you want to extend. If it's not, you cannot extend that volume using this method.

    Let me know if you have any further queries!

    If the comment is helpful, please click "upvote".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.