Share via

Azure Files file retrieve

Daniel Nascimento 281 Reputation points
2022-01-14T19:10:09.013+00:00

Hello,

I've an azure vm with apache web server installed and a web application there.

Since we are running low on storage, we decide to create an azure storage account with file shares and mount it on the vm. The problem is that the web application can't read the html pages stored there, even when we mount the azure files with 777 permissions.

Does anyone know's why this isn't working or telling me if this is even supported or not? I tried to do some research but couldn't find anything related to this problem exactly.

If this is not supported do we have any workaround we can try?

Thanks in advance.

Azure Files
Azure Files

An Azure service that offers file shares in the cloud.

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

0 comments No comments

Answer accepted by question author

Sumarigo-MSFT 47,511 Reputation points Microsoft Employee Moderator
2022-01-17T09:01:18.577+00:00

@Daniel Nascimento Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

Can you please share the screenshot of the error message?
May I know which OS are using(Mounting)?

Please cross verify the perquisites and settings : How to Mount Azure Storage as a local share in a custom container in App Service

You can also use Azure Blob Storage

Please refer to this link which helps you How to connect an app to Azure Storage and access the Storage : https://learn.microsoft.com/en-us/learn/modules/connect-an-app-to-azure-storage/

Please let us know if you have any further queries. I’m happy to assist you further.

----------

Please do not forget to 165607-screenshot-2021-12-10-121802.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

Was this answer helpful?


2 additional answers

Sort by: Most helpful
  1. Devaraj G 2,101 Reputation points Volunteer Moderator
    2022-01-15T10:13:34.85+00:00

    Hi,

    Thanks for posting.

    So you able to successfully mount the storage account but cannot access the files from website configured ? did you try to access the mount files directly without web.

    Was this answer helpful?


  2. Daniel Nascimento 281 Reputation points
    2022-01-14T19:21:54.837+00:00

    One thing i forgot to say. From the quality environment we are able to access it, the different from the production vm is that the quality is not open to the internet, we are only able to access the website via the jumpbox. The jumpbox and the quality vm are all in the same vnet,

    On the production website the web server is not able to read from it.

    Just a resume:

    • The pages in the azure files can not be accessed from the internet (production vm)
    • From the internal azure network we can access it in the quality env

    Both of these VM's are exatcly the same

    Was this answer helpful?

    0 comments No comments

Your answer

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