Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase harddisk size of Azure VM

I am using Azure VM which is of type RHEL OS type. Currently I am using Standard D3 v2 size VM. I see only 32 hard disk storage available in VM. How do I increase the size of hard disk?

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        32G   32G  185M 100% /
devtmpfs        6.9G     0  6.9G   0% /dev
tmpfs           6.9G     0  6.9G   0% /dev/shm
tmpfs           6.9G  8.4M  6.9G   1% /run
tmpfs           6.9G     0  6.9G   0% /sys/fs/cgroup
/dev/sda1       497M  117M  381M  24% /boot
/dev/sdb1       197G  2.1G  185G   2% /mnt/resource
tmpfs           1.4G     0  1.4G   0% /run/user/1000

Note: I am using unmanaged disk.

like image 334
Galet Avatar asked Dec 06 '25 17:12

Galet


1 Answers

If your Virtual Machine was created using the Azure Resource Manager (ARM) you can resize the OS disk or the data disk within the new Azure Portal.

  1. Navigate to the Azure Resource Manager Virtual Machine that you want to resize the disk(s).
  2. Shutdown the Virtual Machine from the Azure portal. Wait untill it's completely shutdown (de-allocated).
  3. Select ‘Disks’ in the Settings blade (As in the below image).

Disks settings blade

  1. Select the OS or Data disk that you would like to resize.
  2. On the new blade, enter the new disk size (1023GB or 1TB max per disk) (As in the below image).

Change disk size

  1. Hit ‘Save’ on top.
  2. Start the Virtual Machine again.

That’s it! You can login to the VM and check that you have the new selected size for the disk(s).

like image 197
Asela Chamara Avatar answered Dec 09 '25 15:12

Asela Chamara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!