@@ -74,36 +74,39 @@ Follow these steps in the Azure portal for your Azure Local instance:
74
74
75
75
## Expand a data disk
76
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 )
77
+ After creating a data disk, you can expand the data disk to your desired size using Azure CLI.
85
78
86
79
To expand the size of your data disk using Azure CLI, run the following command:
87
80
88
81
``` azurecli
89
82
az stack-hci-vm disk update --name $name --resource-group $resource_group --size-gb $size_in_gb
90
83
```
91
84
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.
105
90
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
+ ```
107
110
108
111
## Delete a data disk
109
112
0 commit comments