Identify any unattached (unused) Microsoft Azure virtual machine disk volumes available within your Azure cloud account and delete them in order to lower the cost of your monthly bill and reduce the risk of sensitive data leakage.
This rule resolution is part of the Conformity Security & Compliance tool for Azure.
optimisation
Each virtual machine disk volume provisioned in your Azure cloud account is adding charges to your monthly bill, regardless whether the resource is being used or not. Removing unattached/orphaned data disk volumes can help you avoid unexpected charges on your Azure bill and halt unwarranted access to any confidential data available on these volumes.
Audit
To determine if there are any unattached data disk volumes available in your Azure account, perform the following actions:
Remediation / Resolution
To remove any unattached and unwanted Azure virtual machine disk volumes from your Azure cloud account, perform the following actions:
Note: Backup your data – once a disk volume is deleted, all the data available on the disk will be lost. Since the volume snapshots are much more cost-effective, it is recommended to create snapshots before deleting your unattached disk volumes.References
- Azure Official Documentation
- Introduction to Azure managed disks
- Create a snapshot
- Create a snapshot
- Azure PowerShell Documentation
- az disk list
- az disk show
- az snapshot create
- az disk delete