Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Managed and Unmanaged Disk

Can someone tell me the main benefits and differences between Managed disks and Unmanaged disks, various pros and cons of the managed and unmanaged disk and how best can I use this?

like image 304
deadtest Avatar asked Oct 06 '17 13:10

deadtest


People also ask

What is an unmanaged disk in Azure?

Unmanaged disks are managed by Microsoft Cloud Services. In this case, you have a storage account and under this account one or more blobs (e.g vhd's). For unmanaged disks, there is a capacity limit of 500 TB per Storage Account. More details you can find in the link below : Introduction to Azure managed disks.

Can we convert unmanaged disk to managed disk?

If you have existing Windows virtual machines (VMs) that use unmanaged disks, you can migrate the VMs to use managed disks through the Azure Managed Disks service. This process converts both the operating system (OS) disk and any attached data disks.

Can unmanaged disk be encrypted in Azure?

@NarinderVerma Yes, it is possible. You could encrypt an unmanaged VM, you could use Power Shell to do this, see this link docs.microsoft.com/en-us/azure/virtual-machines/windows/…


2 Answers

I would like to highlight some of the benefits of using managed disks:

  1. Simple and scalable VM deployment: Managed Disks will allow you to create up to 10,000 VM disks in a subscription, which will enable you to create thousands of VMs in a single subscription.

  2. Better reliability for Availability Sets: Managed Disks provides better reliability for Availability Sets by ensuring that the disks of VMs in an Availability Set are sufficiently isolated from each other to avoid single points of failure.

  3. Highly durable and available.

  4. Granular access control: You can use Azure Role-Based Access Control (RBAC) to assign specific permissions for a managed disk to one or more users. Managed Disks exposes a variety of operations, including read, write (create/update), delete, and retrieving a shared access signature (SAS) URI for the disk.

  5. Azure Backup service support: Use Azure Backup service with Managed Disks to create a backup job with time-based backups, easy VM restoration and backup retention policies.

  6. Are unmanaged disks still supported: Yes. Both support unmanaged and managed disks. We recommend that you use managed disks for new workloads and migrate your current workloads to managed disks.

Refer Azure Managed Disks Overview for more details.

like image 142
AjayKumar-MSFT Avatar answered Sep 21 '22 22:09

AjayKumar-MSFT


Essentially, Managed Disks are easier to use because they don't require you to create a storage account. I think Azure still creates one, but this detail is hidden from you.

The benefit of not having to manage a storage account is that storage accounts have limits, like max IOPS, so that if you place too many disks in a storage account, it is possible that you will reach the IOPS limit. Azure takes care of this for you.

If you have VMs in an Availability Set, Azure will make sure that disks are on different "stamps" ensuring that disks are spread out so that you don't have a single point of failure for the disks.

As for a Con, I've encountered two (but there are probably more):

  1. When taking snapshots they are Full Snapshots, not incremental, so this adds to storage cost.

  2. If you are setting up a Disaster Recovery between two Azure regions, using Recovery Services, managed disks are not yet supported.

    • Managed disk for Azure site recovery is now supported
like image 36
Cloud SME Avatar answered Sep 23 '22 22:09

Cloud SME