Unable mount FileShare to multi-container App Service - InvalidCredentials

Grzegorz Czmielewski 1 Reputation point
2022-02-19T22:58:02.83+00:00

Hi,

I am struggling with mounting FileShare to multi-container app service. I was trying to follow https://azure.github.io/AppService/2018/09/24/Announcing-Bring-your-own-Storage-to-App-Service.html

When I executed something like:

az webapp config storage-account add -g <my-rg> -n <my-app> --custom-id imagesMountId2 --storage-type AzureFiles --account-name <accountName> --share-name images --access-key "<SAME_ACCESS_KEY>" --mount-path /image_database2

Then in a result I can see InvalidCredentials for AzureFiles

  "imagesMountId2": {
    "accessKey": "<SAME_ACCESS_KEY>",
    "accountName": "<accountName>",
    "mountPath": "/image_database2",
    "shareName": "images",
    "state": "InvalidCredentials",
    "type": "AzureFiles"
  },
  "testBlob": {
    "accessKey": "<SAME_ACCESS_KEY>",
    "accountName": "<accountName>",
    "mountPath": "/test-blob",
    "shareName": "docker-images",
    "state": "Ok",
    "type": "AzureBlob"
  }

As you can see above I was able to mount AzureBlob using same accessKey. Additionally I have tried mount the same AzureFile to some regular node.js application on AppService (no multi-container app) and it was working fine. So looks like I have some problem to mount FileShare to my multi-container App Service (but looks like AzureBlob works fine).

Additionally what I have tried to make it working:

set on FileShares - Security: Maximum compatibility -> not helped
upgrade Service Plan to S1 -> not helped
run command to mount FileShare with --debug -> got just 200 response with this state: 'InvalidCredentials' for FileShare and no warnings, errors, etc..

Any idea what should I do to make it working?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,283 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,684 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vergara Perez, Jefferson 1 Reputation point
    2022-02-21T00:57:55.817+00:00

    Hi, I just got the same issue the MS support and product team still looking for the RCA.
    As a work-around I have to reuse the only function that still working, it is deployed on EU2 and mounted on a File Share on Central.

    Function: Nodejs - Linux - EU2 - B3
    Storage: Fileshare - Montado con az webapp config storage-account add ...


  2. Grzegorz Czmielewski 1 Reputation point
    2022-02-22T19:40:44.813+00:00

    Hi,

    Just an update from my side. Looks like at the end FileShare was properly mounted to my container. State all time was “InvalidCredentials” for this mount, but it was fully functional. Both, read and write operations worked fine.


Your answer

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