Skip to content

Commit 97fef11

Browse files
committed
update
1 parent 77fee01 commit 97fef11

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

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

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -74,36 +74,39 @@ Follow these steps in the Azure portal for your Azure Local instance:
7474

7575
## Expand a data disk
7676

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)
77+
After creating a data disk, you can expand the data disk to your desired size using Azure CLI.
8578

8679
To expand the size of your data disk using Azure CLI, run the following command:
8780

8881
```azurecli
8982
az stack-hci-vm disk update --name $name --resource-group $resource_group --size-gb $size_in_gb
9083
```
9184

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.
85+
>[!NOTE]
86+
>
87+
>- The size `--size-gb` you are changing the data disk to can't be the same or less than the original size of the data disk.
88+
>- The maximum size the disk can expand to depends on the storage capacity of the cluster.
89+
>- Hyper-V also imposes a VHD max of 2TB and VHDx max of 64TB.
10590
106-
---
91+
Here is a sample output that indicates successful resizing of the data disk:
92+
93+
```Output
94+
{
95+
"endTime": "2025-03-17T17:55:49.3271204Z",
96+
"error": {},
97+
"extendedLocation": null,
98+
"id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS2EUAP/operationStatuses/00000000-0000-0000-0000-000000000000*0000000000000000000000000000000000000000000000000000000000000000",
99+
"location": null,
100+
"name": "00000000-0000-0000-0000-000000000000*0000000000000000000000000000000000000000000000000000000000000000",
101+
"properties": null,
102+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.AzureStackHCI/virtualHardDisks/dataDiskName",
103+
"startTime": "2025-03-17T17:55:25.8868586Z",
104+
"status": "Succeeded",
105+
"systemData": null,
106+
"tags": null,
107+
"type": null
108+
}
109+
```
107110

108111
## Delete a data disk
109112

0 commit comments

Comments
 (0)