• About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post
No Result
View All Result
Digital Phablet
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
No Result
View All Result
Digital Phablet
No Result
View All Result

Home » How to Identify Unused Managed Disks in Azure Associated with VMs

How to Identify Unused Managed Disks in Azure Associated with VMs

DP Staff by DP Staff
April 24, 2026
in How To
Reading Time: 2 mins read
A A
How to Fix Azure Student Subscription Region Error
ADVERTISEMENT

Select Language:

If you’re trying to figure out whether a managed disk in Azure is truly being used inside your virtual machine, here’s a simple step-by-step guide to help you get the full picture.

ADVERTISEMENT

First, let’s check the Azure side to see if the disk is attached to your VM. Azure tracks whether a managed disk is connected through a property called ManagedBy. You can view this information easily using the Azure Command-Line Interface (CLI). Run this command:

az disk show –resource-group YourResourceGroup –name YourDiskName –query managedBy -o tsv

If the output gives you the VM’s resource ID, it means the disk is attached. If it’s blank, then the disk isn’t currently connected to any VM.

ADVERTISEMENT

You can also double-check which disks are attached to your VM with this command:

az vm show –resource-group YourResourceGroup –name YourVM –query “storageProfile.dataDisks[].name” -o table

This will list all data disks linked with your VM.

Once you’ve confirmed that the disk is attached, the next step is to check if it is being used inside the virtual machine. This depends on the operating system your VM is running.

If your VM operates on Linux, you need to log in via SSH. Once inside, use the command lsblk to list all attached disks and df -h to see which disks are mounted. If the disk shows up in lsblk but isn’t listed in df -h as mounted, it means the disk is not in use currently.

For Windows VMs, connect via Remote Desktop. Then go to Disk Management by typing diskmgmt.msc. Here, you can see if the disk is initialized, online, and has a drive letter assigned. If the disk is offline, uninitialized, or without a partition or drive letter, it suggests that the disk is connected but not being used.

ADVERTISEMENT

This method should give you a clear understanding of whether the disk is attached and actively in use inside your VM. If you want more details, Microsoft provides helpful guides for both Linux and Windows disks:

  • Find unattached disks on Linux
  • Find unattached disks on Windows

If you have any questions or need further assistance, feel free to ask. I’m happy to help!

ChatGPT ChatGPT Perplexity AI Perplexity Gemini AI Logo Gemini AI Grok AI Logo Grok AI
Google Banner
ADVERTISEMENT
DP Staff

DP Staff

Related Posts

How to Complete Gatherables, Wardrobe, and Solving Chests in Crimson Desert
Gaming

How to Complete Gatherables, Wardrobe, and Solving Chests in Crimson Desert

April 24, 2026
Top 13 Countries With The Most Beautiful Trans Women In The World 

1.  Thailand
Infotainment

Top 13 Countries with the Most Beautiful Trans Women in the World

April 24, 2026
News

Netanyahu Announces Successful Prostate Cancer Treatment

April 24, 2026
Gaming

How to Complete All Achievements in Kiln with Solving Skills

April 24, 2026
Next Post

How to Complete All Achievements in Kiln with Solving Skills

  • About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post

© 2026 Digital Phablet

No Result
View All Result
  • Home
  • News
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones

© 2026 Digital Phablet