Skip to content

Commit d46000d

Browse files
authored
Merge pull request #18484 from sethmanheim/tsgupd
Add new mitigation steps per dev feedback
2 parents 75fa390 + 1c603a6 commit d46000d

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

AKS-Arc/delete-storage-volume.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ 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
8+
ms.reviewer: guanghu
9+
ms.lastreviewed: 07/18/2025
810

911
---
1012

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

1921
## Workaround
2022

21-
To manage storage volumes on Azure Local, follow these steps:
23+
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:
2224

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).
25+
```azurecli
26+
$storagepathname="<Storage path name>"
27+
$path="<Path on the disk to cluster shared volume>"
28+
$subscription="<Subscription ID>"
29+
$resource_group="<Resource group name>"
30+
$customLocName="<Custom location of your Azure Local>"
31+
$customLocationID="/subscriptions/<Subscription ID>/resourceGroups/$resource_group/providers/Microsoft.ExtendedLocation/customLocations/$customLocName"
32+
$location="<Azure region where the system is deployed>"
33+
34+
az stack-hci-vm storagepath create --resource-group $resource_group --custom-location $customLocationID --name $storagepathname --path $path
35+
az stack-hci-vm storagepath update --resource-group $resource_group --custom-location $customLocationID --name $storagepathname --location $location
36+
```
37+
38+
Once the storage path is recreated, the [MOC service](concepts-node-networking.md#microsoft-on-premises-cloud-service) automatically re-downloads the required **MocGalleryImages**.
2539

2640
## Next steps
2741

0 commit comments

Comments
 (0)