Share via

Classic VM disk resize using Powershell

Upendra V N. Nagaraju 1 Reputation point
2021-11-11T04:09:52.87+00:00

I need to resize the azure classic VM disk using Powershell. Please help me with the PowerShell commands or suggest a suitable article. I am performing this for the first time.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

3 answers

Sort by: Most helpful
  1. Limitless Technology 40,106 Reputation points
    2021-12-17T15:14:30.467+00:00

    You can use below PowerShell command to resize Azure VM disk.

    Update-AzureDisk -DiskName [Disk-Name] -Label [DiskLabel]-ResizedSizeInGB 1020

    Below is Microsoft reference article for detailed steps.

    https://learn.microsoft.com/en-us/archive/blogs/madan/resizing-azure-vm-os-or-data-disk

    ------

    --If the reply is helpful, please Upvote and Accept as answer--

    Was this answer helpful?

    0 comments No comments

  2. Rich Matheisen 48,116 Reputation points
    2021-11-11T15:43:55.933+00:00

    Is this any help?

    azs-how-resize-disk-ps.html

    Was this answer helpful?

    0 comments No comments

  3. Upendra V N. Nagaraju 1 Reputation point
    2021-11-11T04:23:34.773+00:00

    I Need PowerShell commands to resize the VHD. I tried to list my classic VM using Get-AzVM but it lists only managed VMs not unmanaged VMs(classic). Need help here.

    Was this answer helpful?

    0 comments No comments

Your answer

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