question

MSTechie-7364 avatar image
0 Votes"
MSTechie-7364 asked ranirishmawi-6239 commented

Mounting fileshare on Azure App Service container in Preview. When will it be in GA ?

In Azure App Service for container windows , we have the option of mounting FileShare , which is in Preview. When will this feature be in GA ?
https://docs.microsoft.com/en-us/azure/app-service/configure-connect-to-azure-storage?pivots=container-windows#link-storage-to-your-app


45238-image.png


azure-webappsazure-webapps-vnet
image.png (89.2 KiB)
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

ryanchill avatar image
1 Vote"
ryanchill answered ranirishmawi-6239 commented

Hi @MSTechie-7364,

Thank you for your interest in Storage Mount for App Service. Hopefully, the feature has been working out well for you. With regards to your question about when the feature will go GA, there's isn't a concrete time frame of when the transition to GA will occur. The team is targeting towards the end of this year; however, timelines and schedules can change so bear that in mind should it still be tagged with (Preview).

Regards,
Ryan

· 16
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.

Thanks @ryanchill

I have a express route connection from on-premises to Azure network via hub-and-spoke topology.

I have an on-premises website accessing a shared folder in my on-premises .
We want to move only the website to azure web app and everything else will remain on-premises

i want to mount that on-premises shared folder to my docker container and then host in Azure AppService Container . Is it possible ?
I saw the below link from Microsoft saying how to mount fileshare to windows container. Will it work for Azure Web Apps container ?
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/persistent-storage#smb-mounts

0 Votes 0 ·

Hi @MSTechie-7364,

The use of SMB mounts on Azure App Service are not supported. Please see https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#restricted-outgoing-ports as SMB port 445 is restricted. The only options I can think of is either using Azure File Share Sync or crafting your own syncing through the REST APIs and/or SDK.

Regards,
Ryan


0 Votes 0 ·

Hi @ryanchill

For my windows App Service container, when i try to mount path to windows location, it does not accept and gives below error.



  1. Mount path must be a fully qualified path and can only include alphanumeric characters, underscores, hyphens, forward slashes, square brackets, and parenthesis




Please see below screenshot. How to map to c:\testdir of my windows container to Azure fileshare ?

46080-image.png

Please help


0 Votes 0 ·
image.png (130.6 KiB)

That won't work @MSTechie-7364. your mount path needs to use forward slashes, so in your case it would be /testdir. In which case your dockerfile or docker-compose will need a volume directive configured to /testdir.

Regards,
Ryan

0 Votes 0 ·

Hi @ryanchill

I have done the mapping as suggested by you , but I am not able to get the contents of the file from the mapped folder (using KUDU ) .i have mapped to azure fileshare and contents are there on the azurefileshare.
I am using windows appservice container. Please see below screenshot.
where am i going wrong ?
46239-image.png



46341-image.png


0 Votes 0 ·
image.png (94.6 KiB)
image.png (106.5 KiB)
Show more comments

I am trying to make this work on windows server core container with asp.net core runtime installed. I followed the same instructions with no luck. I have dockerfile and not docker-compose, how to specify a volume directive that point to the created mount in the azure storage?

0 Votes 0 ·
Show more comments

Hi @ryanchill
My problem is not able to create files on the mounted azure file storage path from the kudu console of azure app service... exactly as listed in below article. Is this issue resolved for windows app service container.?

https://docs.microsoft.com/en-us/answers/questions/129573/azure-app-service-windows-container-mount-file-sha.html

0 Votes 0 ·