Share an Azure Managed Disk in VMSS

Uziel Silva 71 Reputation points
2023-08-07T10:49:23.6966667+00:00

Hello!

Is it possible to share a data disk on my VMSS so that it is accessible to all instances? If so, is this solution native or do I have to configure a cluster service for the instances to access these disks?

Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
666 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
441 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 37,991 Reputation points Microsoft Employee
    2023-08-07T15:53:47.6433333+00:00

    @Uziel Silva

    I understand you have some data on a disk that you would like to be shared across multiple VMs in your VMSS.

    Azure shared disks is a feature for Azure managed disks that allow you to attach a managed disk to multiple virtual machines (VMs) simultaneously. However, shared disks require a cluster manager, like Windows Server Failover Cluster (WSFC), or Pacemaker, that handles cluster node communication and write locking. Shared managed disks don't natively offer a fully managed file system that can be accessed using SMB/NFS.

    If you do not wish to use a cluster manager, I would recommend using Azure Files. Azure Files offers fully managed file shares in the cloud that are accessible via the industry standard Server Message Block (SMB) protocol, Network File System (NFS) protocol, and Azure Files REST API. Azure file shares can be mounted concurrently by cloud or on-premises deployments. SMB Azure file shares are accessible from Windows, Linux, and macOS clients. NFS Azure file shares are accessible from Linux clients

    If you are using Linux VMs you can also consider using Blob Storage and mounting with either BlobFuse2 or NFS.

    Hope this helps. Let me know if you have any questions.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image


1 additional answer

Sort by: Most helpful
  1. Uziel Silva 71 Reputation points
    2023-08-14T11:41:12.34+00:00

    Thank you very much, your answers will help me.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.