question

pragadeeshraju-2799 avatar image
0 Votes"
pragadeeshraju-2799 asked ManuPhilip commented

Mounting azure storage/fileshare to webapp service (not a container app)

Hello,

I wanted to mount azure storage/fileshare to webapp service (not a container app) to have a persistent data storage.


is this possible?

if not, is there any possible workaround or solution to do it.

any suggestions/insights are appreciated.

Thanks.

azure-webappsazure-webapps-developmentazure-webapps-migration
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

ManuPhilip avatar image
1 Vote"
ManuPhilip answered ManuPhilip commented

Hello @pragadeeshraju-2799,


I tested the following az cmdlet and it worked for the purpose


 az webapp config storage-account add -g "your resource group name" --name "app service name" --storage-type AzureFiles --share-name "share name" --account-name "storage account name" --access-key "your storage account key" --mount-path "mount path in app service" --custom-id "your custom id" --verbose --debug

Added verbose and debug switches to see any issues in running the cmdlet


Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion


Regards,


Manu


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

Hello @ManuPhilip ,


Does this works for windows based webapp?


0 Votes 0 ·
ManuPhilip avatar image ManuPhilip pragadeeshraju-2799 ·

Yes it should work. I am able to mount it on the specified path. You may try it in your windows web app

0 Votes 0 ·

its works for linux webapp, but not for windows?

did you check it for windows? just wanted to know where im going wrong

0 Votes 0 ·
Show more comments