Skip to content

Commit d0341be

Browse files
committed
Expand data disk
1 parent 0a203d5 commit d0341be

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

azure-local/manage/manage-arc-virtual-machine-resources.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,39 @@ Follow these steps in the Azure portal for your Azure Local instance:
7272

7373
---
7474

75+
## Expand a data disk
76+
77+
You can expand a data disk to your desired size.
78+
79+
>[!NOTE]
80+
>
81+
>- The size you are changing the data disk to can't be the same or less than the original size of the data disk.
82+
>- The maximum size the disk can expand to depends on the storage capacity of the cluster.
83+
>- Hyper-V also imposes a VHD max of 2TB and VHDx max of 64TB.
84+
### [Azure CLI](#tab/azurecli)
85+
86+
To expand the size of your data disk using Azure CLI, run the following command:
87+
88+
```azurecli
89+
az stack-hci-vm disk update --name $name --resource-group $resource_group --size-gb $size_in_gb
90+
```
91+
92+
### [Azure portal](#tab/azureportal)
93+
94+
To expand the size of your data disk in the Azure portal, follow these steps:
95+
96+
1. Go to Azure Local resource, and then go to **Virtual machines**.
97+
98+
1. In the list of VMs, select and go to the VM whose data disk you want to expand.
99+
100+
1. Go to **Disks** and select the data disk that you want to expand. On the command bar, select **Edit**.
101+
102+
1. In the **Edit disk** pane, enter the desired size of your data disk in **Size (GB)**.
103+
104+
1. Select **Save** to save the changes.
105+
106+
---
107+
75108
## Delete a data disk
76109

77110
Follow these steps in the Azure portal for your Azure Local instance:

0 commit comments

Comments
 (0)