I cannot see data on my shared disk on my second Azure VPS

Matt Riches 1 Reputation point
2021-06-21T20:22:18.693+00:00

Hi. I have just added a managed Shared Disk to my 2 Azure VM's via powershell.
I have rebooted both boxes, and have copied data to this shared shared drive.
I can see the data on the machine I copied to.
If I then log into my second VPS, it can see the same disk, but the Data I have recently copied is not there.
I assumed (Rightly or wrongly) That a shared Data Disk would allow me to have a common area for items such as common website assets (the 2 VPS are set up as a load balanced pair)
If this is the wrong way of doing this please let me know, or help me understand why I cannot access these resources on my second server.
Ideally I want a shared config and set of shared resources on this shared disk. Both of my VPS and the shared disk are in the same region.
Viewing the disk in the console shows that both the VMs are managing it.

Thanks

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,129 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
572 questions
{count} votes

3 answers

Sort by: Most helpful
  1. deherman-MSFT 33,306 Reputation points Microsoft Employee
    2021-06-22T17:22:53.757+00:00

    @Matt Riches

    Azure Shared Disks is designed primarily for clustered applications and very specific workloads. Shared managed disks do not natively offer a fully managed file system that can be accessed using SMB/NFS. You need to use a cluster manager, like Windows Server Failover Cluster (WSFC) or Pacemaker, that handles cluster node communication and write locking. See here for some example workloads.

    It sounds like you should consider Azure Files. Azure Files offers fully managed file shares in the cloud that are accessible via the industry standard Server Message Block (SMB) protocol. Azure file shares can be mounted concurrently by cloud or on-premises deployments of Windows, Linux, and macOS. Additionally, Azure file shares can be cached on Windows Servers with Azure File Sync for fast access near where the data is being used. I recommend reading through Planning for an Azure Files deployment for more details.

    I hope this helps. Let us know if you have any further questions and we will be happy to help.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


  2. Matt Riches 1 Reputation point
    2021-06-23T08:55:42.547+00:00

    If I log to the VM as the local admin I can click on the share and read the files.

    If I map a folder on the shared drive to a virtual directory in IIS then browse to a folder I get a 500 error

    RIght clicking on the share to look at permissions shows System, Share Administrators, System, Share users, Authenticated users and Creator Owner. I then tried to add IIS_USRS to the share in case it was an IIS account issue, and got the below popup.

    108554-image.png
    So this is most likely down to the way I set up the FileShare. Question is, do I drop it / delete it and make a new one with no security at all, or is there something I can do to fix the issues and keep the secure FileShare


  3. Matt Riches 1 Reputation point
    2021-06-24T11:12:29.2+00:00

    To be honest I haven't been through that step. I was following a guide (not a MS one) on setting up the Fileshare. It got a little vague around network and security blades, but I didn't want to leave my File Share as public.
    Am I correct in that you are saying I need to add a site specific IIS user for each webserver / site, then enable and activate Azure AD, and give those permissions to get this to work?

    0 comments No comments