Can multiple Function Apps use one file share?

Michelle Blum 806 Reputation points Microsoft Employee
2021-10-14T19:22:23.53+00:00

We have a number of Azure Function Apps and are hoping to associate them all with the same file share.
Would this break the Function Apps / Is this possible? How would this impact the behavior?

Looking to understand the pros and cons of using this setup from an Azure infrastructure perspective.

Note: This question is being posted as part of an internal effort at Microsoft to share emerging content with the community. A Microsoft employee will be following up with an answer shortly. If you have feedback regarding this issue, we encourage the community to start a discussion in the comments.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,212 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michelle Blum 806 Reputation points Microsoft Employee
    2021-10-14T19:28:30.503+00:00

    If you were to use multiple function apps with a single file share, you would be sharing content settings and many other things across the apps.
    Also, you would be tightly coupling your functions, which means if one has a change, all of the apps will restart at the same time.
    Due to these two points, the setup would not be recommended for production implementation as Azure's intended design is to have a 1 to 1 mapping of Azure File Share to Function App.

    However, There is an exception if you want all of the Azure Functions to be the same.

    If having them be the same is the goal, it would be recommended instead to use continuous deployment and reference the same Repo rather than to have all apps share one File Share.

    To give a supporting example,
    By default, when you create a new deployment slot, a new File Share will be auto-created for this very reason.

    0 comments No comments

0 additional answers

Sort by: Most helpful