Site icon Digital Thought Disruption

After You Migrate: Cleanup, Governance, and Preventing Unmanaged Disks from Coming Back

TL;DR

Architecture Diagram

Table of Contents

Scenario

You’ve migrated your VMs to managed disks. The outage risk is reduced.

Then the quiet problems show up:

This post is about making “managed disks everywhere” the default, not a one-time project.

What “Done” Looks Like

You are done when:

Operational Runbook Snapshot

Roles:

Runbook stages:

Cleanup Workflow

Cleanup objective

Reduce cost and remove latent risk:

Managed disks cleanup

A managed disk can be unattached but still billable.

Operator workflow:

Example with Azure CLI:

# List managed disks that are not attached to any VM
az disk list --query "[?managedBy==null].[name,resourceGroup,location,id]" -o table

Unmanaged disks cleanup

Unmanaged disks are page blobs in storage accounts. After migration, the original VHD blobs may remain.

Operator workflow:

Keep your deletion workflow conservative:

Governance Controls

Azure Policy: audit unmanaged disk usage

Your minimum viable guardrail:

Policy assignment options:

CI guardrails in IaC

Design-time prevention is stronger than day-two detection.

Controls to add:

Exception workflow

You will find edge cases. Handle them without creating permanent risk:

Anti-patterns

Day-two Operations

Your steady-state routines:

Best Practices

Conclusion

Migration avoids an outage, but governance prevents a repeat. Clean up the old artifacts, enforce managed disks with policy, and put guardrails into your delivery pipelines so unmanaged disks cannot reappear.

Sources

Find and delete unattached Azure managed and unmanaged disks (Azure portal): https://learn.microsoft.com/en-us/azure/virtual-machines/disks-find-unattached-portal
Find and delete unattached Azure managed and unmanaged disks using PowerShell: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/find-unattached-disks
Migrate your Azure unmanaged disks by March 31, 2026: https://learn.microsoft.com/en-us/azure/virtual-machines/unmanaged-disks-deprecation
Azure virtual machine recommended policies (includes Audit VMs that do not use managed disks): https://learn.microsoft.com/en-us/azure/governance/policy/concepts/recommended-policies
Built-in policy definitions for Azure Virtual Machines: https://learn.microsoft.com/en-us/azure/virtual-machines/policy-reference
Frequently asked questions about disks: https://learn.microsoft.com/en-us/azure/virtual-machines/faq-for-disks

Exit mobile version