-
Notifications
You must be signed in to change notification settings - Fork 21.1k
/
disks-find-unattached-portal.yml
74 lines (61 loc) · 4.5 KB
/
disks-find-unattached-portal.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
### YamlMime:HowTo
---
metadata:
title: Identify unattached Azure disks - Azure portal
description: How to find unattached Azure managed and unmanaged (VHDs/page blobs) disks by using the Azure portal.
author: roygara
ms.author: rogarana
ms.date: 04/25/2022
ms.service: azure-disk-storage
ms.topic: how-to
ms.custom:
- ge-structured-content-pilot
title: |
Find and delete unattached Azure managed and unmanaged disks - Azure portal
introduction: |
**Applies to:** :heavy_check_mark: Linux VMs :heavy_check_mark: Windows VMs :heavy_check_mark: Flexible scale sets :heavy_check_mark: Uniform scale sets
When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This helps to prevent data loss due to the unintentional deletion of VMs. After a VM is deleted, you will continue to pay for unattached disks. This article shows you how to find and delete any unattached disks using the Azure portal, and reduce unnecessary costs. Deletions are permanent, you will not be able to recover data once you delete a disk.
procedureSection:
- title: |
Managed disks: Find and delete unattached disks
summary: |
If you have unattached managed disks and no longer need the data on them, the following process explains how to find them from the Azure portal:
steps:
- |
Sign in to the [Azure portal](https://portal.azure.com/).
- |
Search for and select **Disks**.
On the **Disks** blade, you are presented with a list of all your disks.
- |
Select the disk you'd like to delete, this brings you to the individual disk's blade.
- |
On the individual disk's blade, confirm the disk state is unattached, then select **Delete**.
:::image type="content" source="media/disks-find-unattached-portal/delete-managed-disk-unattached.png" alt-text="Screenshot of an individual managed disks blade. This blade will show unattached in the disk state if it is unattached. You can delete this disk if you do not need to preserve its data any longer":::
- title: |
Unmanaged disks: Find and delete unattached disks
summary: |
Unmanaged disks are VHD files that are stored as [page blobs](/rest/api/storageservices/understanding-block-blobs--append-blobs--and-page-blobs#about-page-blobs) in [Azure storage accounts](../storage/common/storage-account-overview.md).
If you have unmanaged disks that aren't attached to a VM, no longer need the data on them, and would like to delete them, the following process explains how to do so from the Azure portal:
steps:
- |
Sign in to the [Azure portal](https://portal.azure.com/).
- |
Search for and select **Disks (Classic)**.
You are presented with a list of all your unmanaged disks. Any disk that has "**-**" in the **Attached to** column is an unattached disk.
:::image type="content" source="media/disks-find-unattached-portal/unmanaged-disk-unattached-attached-to.png" alt-text="Screenshot of the unmanaged disks blade. Disks in this blade that have - in the attached to column are unattached.":::
- |
Select the unattached disk you'd like to delete, this brings up the individual disk's blade.
- |
On that individual disk's blade, you can confirm it is unattached, since **Attached to** will still be **-**.
:::image type="content" source="media/disks-find-unattached-portal/unmanaged-disk-unattached-select-blade.png" alt-text="Screenshot of an individual unmanaged disk blade. It will have - as the attached to value if it is unattached. If you no longer need this disks data, you can delete it.":::
- |
Select **Delete**.
:::image type="content" source="media/disks-find-unattached-portal/delete-unmanaged-disk-unattached.png" alt-text="Screenshot of an individual unmanaged disk blade, highlighting delete.":::
relatedContent:
- text: Use the Azure CLI to find unattached disks
url: linux/find-unattached-disks.md
- text: Use the Azure PowerShell module to find unattached disks
url: windows/find-unattached-disks.md
- text: Identify Orphaned Disks Using PowerShell
url: /archive/blogs/ukplatforms/azure-cost-optimisation-series-identify-orphaned-disks-using-powershell
# For more information, see [Delete a storage account](../storage/common/storage-account-create.md#delete-a-storage-account) and [Identify Orphaned Disks Using PowerShell](/archive/blogs/ukplatforms/azure-cost-optimisation-series-identify-orphaned-disks-using-powershell)