Skip to content

Commit 7529ce3

Browse files
authored
Document process for managing unassociated vSAN objects
Added instructions for listing and deleting unassociated vSAN objects using Run Command in Azure VMware Solution.
1 parent 2e0b6d2 commit 7529ce3

1 file changed

Lines changed: 87 additions & 0 deletions

File tree

articles/azure-vmware/configure-storage-policy.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,93 @@ Run the `Update-StoragePolicyOfUnassociatedVsanObjects` cmdlet to modify curre
171171

172172
3. Check **Notifications** to see the progress.
173173

174+
## Delete unassociated vSAN objects using Run Command
175+
176+
Unassociated vSAN objects can remain in a cluster due to interrupted operations, policy mismatches, or failed workflows. These objects consume storage capacity and may block certain cluster operations.
177+
178+
This article explains how to **list** and **delete** unassociated vSAN objects in **Azure VMware Solution (AVS)** using **Run Command**.
179+
180+
### Prerequisites
181+
182+
Before listing or deleting unassociated vSAN objects, ensure that:
183+
184+
- You have access to the Azure portal with permissions equivalent to the **cloudadmin** role for the AVS private cloud.
185+
- The cluster meets the minimum host requirements for its vSAN configuration (OSA or ESA).
186+
- You are using the latest supported version of the **Microsoft.AVS.Management** Run Command package.
187+
- You have validated that the objects to be deleted are **not required** by any workload, management VM, or system component.
188+
189+
### List unassociated vSAN objects
190+
191+
Before deleting any objects, list and review them to confirm that they are truly unassociated.
192+
193+
Use the **Get‑UnassociatedVsanObjectsWithPolicy** Run Command to list unassociated vSAN objects and obtain their UUIDs.
194+
195+
For detailed steps, see:
196+
- **List storage policies for Unassociated objects**
197+
198+
The output of this command includes the **UUID** of each unassociated vSAN object, which is required for deletion.
199+
200+
201+
### Delete unassociated vSAN objects
202+
203+
After reviewing the list of unassociated objects, delete them **individually** by specifying their UUID and ClusterName.
204+
205+
> [!IMPORTANT]
206+
> Deleting a vSAN object is irreversible. Ensure that the object is not associated with any VM, management component, or system service before proceeding.
207+
208+
### Run Command: `Remove-AvsUnassociatedObject`
209+
210+
1. Navigate to your AVS private cloud in the Azure portal.
211+
2. Select **Run command** > **Packages** > **Microsoft.AVS.Management**.
212+
3. Select **Remove-AvsUnassociatedObject**.
213+
214+
### Run Command parameters
215+
216+
| Field | Description |
217+
|------|-------------|
218+
| **Uuid** | UUID of the unassociated vSAN object to delete. Obtain this value from the output of `Get‑UnassociatedVsanObjectsWithPolicy`. |
219+
| **ClusterName** | Name of the vSAN cluster that contains the unassociated object. |
220+
| **Retain up to** | Retention period for the Run Command output. |
221+
| **Specify name for execution** | Alphanumeric name used to identify this Run Command execution. |
222+
| **Timeout** | Time after which the command exits if it does not complete. |
223+
224+
:::image type="content"
225+
source="media/run-command/run-command-overview-remove-unassociated-object.png"
226+
alt-text="Screenshot showing the Remove-AvsUnassociatedObject Run Command in the Azure portal."
227+
lightbox="media/run-command/run-command-overview-remove-unassociated-object.png"
228+
:::
229+
230+
4. Provide the **UUID** and **ClusterName** of the unassociated object you want to remove.
231+
232+
:::image type="content"
233+
source="media/run-command/run-command-remove-unassociated-object.png"
234+
alt-text="Screenshot of the Remove-AvsUnassociatedObject Run Command execution."
235+
lightbox="media/run-command/run-command-remove-unassociated-object.png"
236+
:::
237+
238+
5. Select **Run** and monitor execution progress.
239+
240+
Once the command completes successfully, the specified vSAN object is permanently removed from the cluster.
241+
242+
### Best practices and safety guidance
243+
244+
- Always **list objects first** and review them carefully before deletion.
245+
- Delete objects **one at a time** to minimize risk.
246+
- Avoid deleting objects with names or attributes associated with:
247+
- Management VMs
248+
- vCenter
249+
- NSX
250+
- HCX
251+
- SRM
252+
- Backup or replication components
253+
- If you are unsure about an object, do not delete it and investigate further.
254+
255+
### Next steps
256+
257+
- Review storage policy assignments to prevent future unassociated objects.
258+
- Monitor vSAN health checks regularly.
259+
- Use Run Command outputs and retention settings to maintain auditability.
260+
174261
## Specify a storage policy for a cluster
175262

176263
Run the `Set-ClusterDefaultStoragePolicy` cmdlet to specify a default storage policy for a cluster.

0 commit comments

Comments
 (0)