Skip to content

Commit 08fadbc

Browse files
committed
Add new mitigation steps per dev feedback
1 parent 75fa390 commit 08fadbc

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

AKS-Arc/delete-storage-volume.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to mitigate issues after deleting storage volumes.
44
author: sethmanheim
55
ms.author: sethm
66
ms.topic: troubleshooting
7-
ms.date: 02/28/2025
7+
ms.date: 07/18/2025
88

99
---
1010

@@ -18,10 +18,22 @@ AKS Arc workload data is stored on Azure Local storage volumes, including the AK
1818

1919
## Workaround
2020

21-
To manage storage volumes on Azure Local, follow these steps:
21+
If the storage volume is accidentally deleted, you can mitigate the issue by recreating the storage path using the Azure CLI. For more information, see [Create storage path for Azure Local](/azure/azure-local/manage/create-storage-path). For example:
2222

23-
- Ensure that you deleted all the storage path(s) that are created on that storage volume. Deleting storage paths raises an alert to indicate the workload that was stored on it. To delete the storage path, see [Delete a storage path](/azure/azure-local/manage/create-storage-path?view=azloc-24112&preserve-view=true&tabs=azurecli#delete-a-storage-path).
24-
- If you have an AKS Arc cluster that must be deleted, see [Delete the AKS Arc cluster](aks-create-clusters-cli.md#delete-the-cluster).
23+
```azurecli
24+
$storagepathname="<Storage path name>"
25+
$path="<Path on the disk to cluster shared volume>"
26+
$subscription="<Subscription ID>"
27+
$resource_group="<Resource group name>"
28+
$customLocName="<Custom location of your Azure Local>"
29+
$customLocationID="/subscriptions/<Subscription ID>/resourceGroups/$resource_group/providers/Microsoft.ExtendedLocation/customLocations/$customLocName"
30+
$location="<Azure region where the system is deployed>"
31+
32+
az stack-hci-vm storagepath create --resource-group $resource_group --custom-location $customLocationID --name $storagepathname --path $path
33+
az stack-hci-vm storagepath update --resource-group $resource_group --custom-location $customLocationID --name $storagepathname --location $location
34+
```
35+
36+
Once the storage path is recreated, the [MOC service](concepts-node-networking.md#microsoft-on-premises-cloud-service) automatically re-downloads the required **MocGalleryImages**.
2537

2638
## Next steps
2739

0 commit comments

Comments
 (0)