question

SusheelBhatt-8114 avatar image
0 Votes"
SusheelBhatt-8114 asked ajkuma-MSFT commented

Unable to find\locate mounted file share on Azure WebApp

Hi Everyone,

I mounted a file share to windows azure app service using below article. I see the mount path successfully under path mapping. But how do I access this mount path? I can't find a way to access this mount path.


https://docs.microsoft.com/en-us/azure/app-service/configure-connect-to-azure-storage?tabs=portal&pivots=code-windows

Scenarios :

  1. I opened the app service console and I don't see this mount path.

  2. How do I tell my team to start storing their application logs on this mount point since this isn't even visible.

  3. How to access and verify this mount point is actually visible?

Thanks,
Susheel.

azure-webappsazure-files
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TakahitoIwasa avatar image
0 Votes"
TakahitoIwasa answered ajkuma-MSFT commented

Hi, @SusheelBhatt-8114

Can you see the mount path in App Serivce's "Configuration"-"Path Mapping"?

If you can confirm it, you should be able to confirm "mounts" under C drive after accessing the console.
If you mounted /mounts/hoge
You can move it with cd /mounts/hoge.

I see the mount path successfully
1. I opened the app service console and I don't see this mount path.

Does that mean you added the mount path, but it disappeared when you accessed the console again?
In that case, make sure you "save" after entering the mount path and storage information.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you. I see the files and folder under the mount. I was trying to ls or dir to list my mount points. It doesn't show the mount points if you try to list. You have to specifically change the directory using the exact path or list using the exact path.

Below command doesn't return anything. This should improve going forward:

ls c:\mounts

0 Votes 0 ·

Apologies for the delay! Thanks for your feedback.

Just to highlight, all Azure Web Apps run in a secure environment called a sandbox. The sandbox generally aims to restrict access to shared components of Windows.

Kindly check these doc -App Service Sandbox File System Restrictions/Considerations
Understanding the Azure App Service file system


0 Votes 0 ·