Skip to content

Commit 232a55c

Browse files
Merge pull request #17636 from sipastak/2-2504
Expand data disk
2 parents 49377cb + 06935bf commit 232a55c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,41 @@ 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 an existing data disk to your desired size using Azure CLI.
78+
79+
>[!NOTE]
80+
>
81+
>- The size you're 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. Hyper-V also imposes a VHD max of 2TB and VHDx max of 64TB.
83+
84+
To expand the size of your data disk using Azure CLI, run the following command:
85+
86+
```azurecli
87+
az stack-hci-vm disk update --name $name --resource-group $resource_group --size-gb $size_in_gb
88+
```
89+
90+
Here's a sample output that indicates successful resizing of the data disk:
91+
92+
```Output
93+
{
94+
"endTime": "2025-03-17T17:55:49.3271204Z",
95+
"error": {},
96+
"extendedLocation": null,
97+
"id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS2EUAP/operationStatuses/00000000-0000-0000-0000-000000000000*0000000000000000000000000000000000000000000000000000000000000000",
98+
"location": null,
99+
"name": "00000000-0000-0000-0000-000000000000*0000000000000000000000000000000000000000000000000000000000000000",
100+
"properties": null,
101+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.AzureStackHCI/virtualHardDisks/dataDiskName",
102+
"startTime": "2025-03-17T17:55:25.8868586Z",
103+
"status": "Succeeded",
104+
"systemData": null,
105+
"tags": null,
106+
"type": null
107+
}
108+
```
109+
75110
## Delete a data disk
76111

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

0 commit comments

Comments
 (0)