Share via

How to mount Azure Storage (file type) to Azure App Service (Web App)

Nelson Mendaros 61 Reputation points
2022-09-05T06:01:31.4+00:00

I have a PHP Laravel application deployed on Azure App Service using Web App option. I need to mount an Azure Storage Account (file). I created a file share and mounted it on Azure App Service thru Configurations->Path Settings but it is not working. The application is not accessible even SSH host is not accessible. I followed the steps as describe on this https://learn.microsoft.com/en-us/azure/app-service/configure-connect-to-azure-storage?tabs=portal&pivots=container-linux

Here's the sample screens:

237657-image.png

237617-image.png

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.


2 answers

Sort by: Most helpful
  1. Nelson Mendaros 61 Reputation points
    2022-11-14T06:32:28.11+00:00

    I was able to resolved this issue by adding the VNET subnet in Storage Account->Networking->Virtual Network and the same VNET subnet in the App Service Networking->Outbound Traffic->VNET integration.

    I find it a bit hard to understand the documentation about VNet and apply this on this case.

    1 person found this answer helpful.
    0 comments No comments

  2. SaiKishor-MSFT 17,341 Reputation points Moderator
    2022-10-04T21:35:06.017+00:00

    @Nelson Mendaros Please look at this similar issue here when accessing App service- https://learn.microsoft.com/en-us/answers/questions/951772/azure-app-service-access-application-error.html

    Please let us know if this helps. Thank you!


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.