Can't mount Azure Storage as a local share in function App running on an App Service Plan

Benedikt Schmitt 40 Reputation points
2024-09-30T13:12:12.57+00:00

So I was following this tutorial:

https://learn.microsoft.com/en-us/azure/app-service/configure-connect-to-azure-storage?tabs=basic%2Cportal&pivots=container-linux

I have an Azure Function running on Linux which deploys via containers. I also have a storage account in the same region and resource group where I can create a file-share.

However when navigating to my App and trying to access the Path Mappings Azure doesn't display this specific blade. My Configuration-tab looks like this:

User's image

I also don't know why the runtime version is set to "custom" since I only told Azure to use version ~4.

Is this a bug on Azure's end or can you not mount storage for App Service Plan Functions?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,095 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,220 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,905 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andriy Bilous 11,426 Reputation points MVP
    2024-09-30T19:42:33.9666667+00:00

    Hello Benedikt Schmitt

    You can mount existing Azure Files shares to your Linux function apps. By mounting a share to your Linux function app, you can use existing machine learning models or other data in your functions. You can use the following command to mount an existing share to your Linux function app.

    az webapp config storage-account add -g MyResourceGroup -n MyUniqueApp \ --custom-id CustomId \ --storage-type AzureFiles \ --account-name MyStorageAccount \ --share-name MyShare \ --access-key MyAccessKey \ --mount-path /path/to/mount

    Currently, only a storage-type of AzureFiles is supported. You can only mount five shares to a given function app.

    https://learn.microsoft.com/en-us/azure/azure-functions/storage-considerations?tabs=azure-cli


  2. VenkateshDodda-MSFT 21,651 Reputation points Microsoft Employee
    2024-10-01T10:18:55.3433333+00:00

    Benedikt Schmitt thanks for your follow-up questions on this.

    Currently, mounting the file share function app is supported using cmdlets either through Azure PowerShell or through Azure CLI only.
    The documentation, you are referring mount the file share on the app service/web apps which are completely different.

    Hope this help, let me know if you have any further questions on this.


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.