Close Menu

    Subscribe to Updates

    Get the latest news from tastytech.

    What's Hot

    Can Europe reduce its dependence on the US and at what cost? | Business and Economy

    February 19, 2026

    Building Production-Ready AI Agents with Agent Development Kit

    February 19, 2026

    VCF 9.0 GA Mental Model Part 4: Fleet Topologies and SSO Boundaries (Single Site, Dual Site, Multi-Region)

    February 19, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    tastytech.intastytech.in
    Subscribe
    • AI News & Trends
    • Tech News
    • AI Tools
    • Business & Startups
    • Guides & Tutorials
    • Tech Reviews
    • Automobiles
    • Gaming
    • movies
    tastytech.intastytech.in
    Home»Guides & Tutorials»After You Migrate: Cleanup, Governance, and Preventing Unmanaged Disks from Coming Back
    After You Migrate: Cleanup, Governance, and Preventing Unmanaged Disks from Coming Back
    Guides & Tutorials

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

    gvfx00@gmail.comBy gvfx00@gmail.comFebruary 18, 2026No Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Table of Contents

    Toggle
    • TL;DR
    • Architecture Diagram
    • Table of Contents
    • Scenario
    • What “Done” Looks Like
    • Operational Runbook Snapshot
    • Cleanup Workflow
      • Cleanup objective
      • Managed disks cleanup
      • Unmanaged disks cleanup
    • Governance Controls
      • Azure Policy: audit unmanaged disk usage
      • CI guardrails in IaC
      • Exception workflow
    • Anti-patterns
    • Day-two Operations
    • Best Practices
    • Conclusion
    • Sources
      • Related posts:
    • Automating VM Lifecycle Actions and Snapshots with PowerCLI and Python
    • Building a Local Face Search Engine — A Step by Step Guide | by Alex Martinelli
    • Convert Azure VMs from Unmanaged to Managed Disks: A Production-Ready Runbook

    TL;DR

    • Converting disks is not the finish line. Your real goal is a new steady state:
      • no unmanaged disks
      • no lingering storage account VHD costs
      • guardrails that prevent reintroduction
    • Cleanup is measurable FinOps value: remove unattached disks and old VHD blobs after your validation period.
    • Governance is your long-term win: use Azure Policy to audit VMs that do not use managed disks and surface drift continuously.

    Architecture Diagram

    Table of Contents

    • Scenario
    • What “Done” Looks Like
    • Operational Runbook Snapshot
    • Cleanup Workflow
    • Governance Controls
    • Anti-patterns
    • Day-two Operations
    • Best Practices
    • Conclusion

    Scenario

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

    Then the quiet problems show up:

    • original VHD blobs still exist and cost money
    • orphaned disks accumulate over time
    • a team deploys a legacy template and reintroduces unmanaged disks
    • your compliance posture report doesn’t catch any of it until an audit

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

    What “Done” Looks Like

    You are done when:

    • Inventory shows zero unmanaged-disk VMs across all subscriptions.
    • Old VHD artifacts have a documented retention period and then are deleted.
    • You have a policy posture:
      • audit unmanaged disk usage
      • track exceptions with an expiration date
    • Your IaC and pipelines cannot accidentally recreate unmanaged disks.

    Operational Runbook Snapshot

    Roles:

    • Cloud platform team: backlog, tooling, policy, reporting
    • App owners: validation sign-off and maintenance windows
    • Security/FinOps: governance requirements and cleanup approval

    Runbook stages:

    • validate
    • cleanup
    • enforce guardrails
    • monitor drift and exceptions

    Cleanup Workflow

    Cleanup objective

    Reduce cost and remove latent risk:

    • unattached managed disks
    • unattached unmanaged VHD blobs
    • storage accounts that exist only to host legacy disks

    Managed disks cleanup

    A managed disk can be unattached but still billable.

    Operator workflow:

    • list unattached managed disks
    • confirm retention requirements
    • delete with approval

    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:

    • identify storage accounts that hosted VHDs
    • locate unlocked VHD blobs after conversion
    • delete after validation period and approval

    Keep your deletion workflow conservative:

    • snapshot or export evidence if required by your org
    • perform deletes in small batches
    • document exactly what was removed

    Governance Controls

    Azure Policy: audit unmanaged disk usage

    Your minimum viable guardrail:

    • Assign the built-in policy Audit VMs that do not use managed disks at the subscription or management group scope.
    • Integrate non-compliance reporting into your operations cadence.

    Policy assignment options:

    • portal assignment
    • IaC assignment (Terraform/Bicep)
    • CLI/PowerShell in a platform pipeline

    CI guardrails in IaC

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

    Controls to add:

    • module standards: disallow VM disk definitions that reference storage account VHD URIs
    • pipeline tests:
      • policy-as-code checks
      • template validation
      • peer review gates for compute changes

    Exception workflow

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

    • time-boxed exceptions only
    • business owner sign-off
    • remediation plan tracked like any other change

    Anti-patterns

    • “We’ll migrate later” without an owner and a date.
    • Converting production without verifying IP dependencies.
    • Leaving old VHD blobs forever because “storage is cheap.”
    • Fixing production manually but not updating IaC, guaranteeing drift and repeat work.
    • Treating policy audit as optional telemetry instead of an operational control.

    Day-two Operations

    Your steady-state routines:

    • Weekly inventory report of unmanaged disk usage (should be empty).
    • Monthly cleanup run for unattached managed disks.
    • Quarterly review of exceptions and removals.
    • Post-incident check: any restored VM should land on managed disks.

    Best Practices

    • Build a “golden path”:
      • managed disks by default
      • backup enabled by default
      • policy assignment at management group
    • Measure outcomes:
      • number of unmanaged-disk VMs reduced to zero
      • storage cost reduction from cleanup
      • reduction in operational toil by removing storage account management

    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

    Like this:

    Like Loading…

    Related posts:

    Advanced Automation with PowerCLI, Python, NSX, and Aria Operations

    The Business Case For AI: A Review by Customer Contact Week Conference & Magazine

    Will AI Kill Your Job?

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleGemini can now generate a 30-second approximation of what real music sounds like
    Next Article Top 10 Free Data Analysis Courses With Certification
    gvfx00@gmail.com
    • Website

    Related Posts

    Guides & Tutorials

    VCF 9.0 GA Mental Model Part 4: Fleet Topologies and SSO Boundaries (Single Site, Dual Site, Multi-Region)

    February 19, 2026
    Guides & Tutorials

    Convert Azure VMs from Unmanaged to Managed Disks: A Production-Ready Runbook

    February 19, 2026
    Guides & Tutorials

    VCF 9.0 GA Mental Model Part 3: Day-0 to Day-2 Ownership Across Fleets, Instances, and Domains

    February 18, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    BMW Will Put eFuel In Cars Made In Germany From 2028

    October 14, 202511 Views

    Best Sonic Lego Deals – Dr. Eggman’s Drillster Gets Big Price Cut

    December 16, 20259 Views

    What is Fine-Tuning? Your Ultimate Guide to Tailoring AI Models in 2025

    October 14, 20259 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram

    Subscribe to Updates

    Get the latest tech news from tastytech.

    About Us
    About Us

    TastyTech.in brings you the latest AI, tech news, cybersecurity tips, and gadget insights all in one place. Stay informed, stay secure, and stay ahead with us!

    Most Popular

    BMW Will Put eFuel In Cars Made In Germany From 2028

    October 14, 202511 Views

    Best Sonic Lego Deals – Dr. Eggman’s Drillster Gets Big Price Cut

    December 16, 20259 Views

    What is Fine-Tuning? Your Ultimate Guide to Tailoring AI Models in 2025

    October 14, 20259 Views

    Subscribe to Updates

    Get the latest news from tastytech.

    Facebook X (Twitter) Instagram Pinterest
    • Homepage
    • About Us
    • Contact Us
    • Privacy Policy
    © 2026 TastyTech. Designed by TastyTech.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.