---
title: Increase Disk Size Of Azure Virtual Machine
slug: edgemanager/increase-disk-size-of-azure-virtual-machine
docTags: 
createdAt: 2024-07-17T19:40:20.589Z
---

You can add data disks to your existing Azure Virtual Machine (VM) if you encounter issues due to insufficient disk space or legacy applications.

:::hint{type="warning"}
**Caution:** Remember that you can only resize a disk to a larger size.
:::

# Before You Begin:

- Obtain an Azure account. See the [Microsoft Azure portal](https://azure.microsoft.com/en-us/features/azure-portal/).
- Access to Azure portal and a VM running on Azure.

# Step 1: Increase the Disk Size

As you deploy more applications, increase the load of your databases, or require more resources, you can add data disks to the existing VM to increase its disk size.

**To increase the size of your virtual machine data disk:**

:::hint{type="info"}
**Important:&#x20;**&#x43;hanging the size of the disk can also change the level of the disk tier and may have extra costs. For more information, see [Performance tiers for managed disks](https://learn.microsoft.com/en-us/azure/virtual-machines/disks-change-performance).&#x20;
:::

1. Open the *Microsoft Azure* home page, and then navigate to **Virtual Machines**.
2. Select the **VM** you want to resize and in the toolbar, click **Stop**.
   ::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/IplOLvKahqSbab7a7XZAl_image.png" size="70" width="1121" height="463" position="center" caption="Virtual Machines pane" showCaption="true"}
3. After stopping the machine, navigate to the **Settings** section and click on **Disks**.
4. From the list of attached disks to your VM, select the one you want to resize.
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/kJQsEe7mqbFGx3SPjdVx6_image.png "Disks page")
5. From the *Disk Overview* page, scroll to **Essentials** pane.&#x20;
   You can see the default size of your disk in *Disk Configuration*.
6. To increase its storage capacity, navigate to **Size + performance** under the *Settings&#x20;*&#x73;ection.
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/3NZhgCFiulSceuGXSNyO8_image.png "Disk Overview page")
7. On the resulting screen, modify the value of the **Custom disk size (GiB)&#x20;**&#x73;ection and click the **Resize&#x20;**&#x62;utton to finish the process.
   In this example, the size was increased from 30 to 64 GB and the performance tier has also changed accordingly from P4 to P6 as shown below.
   ![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/64SCU1RLNqdMgJmiP2NdL_image.png "Size + performance page")
8. Navigate back to *Virtual Machine&#x20;*&#x68;ome page to start the VM.&#x20;
9. Click the **Start&#x20;**&#x62;utton and wait until the *Status&#x20;*&#x73;ection changes from `Stopped (deallocated)` to `Running`.

# Step 2: Verify the Disk Size

The next step is to verify that both the partition and filesystem have been successfully resized to ensure that the disk can now be used with the new storage space size.&#x20;

To do this, [connect to the VM through SSH](https://docs.bitnami.com/azure/faq/get-started/connect-ssh/) and execute the following command:

```shell
$ df -dh
```

The output shows that the disk space was correctly resized.

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/963unYctMoUZ26XXHF30g_image.png "Output window")

