question

MichelleBlum-2831 avatar image
0 Votes"
MichelleBlum-2831 asked MichelleBlum-2831 answered

Can multiple Function Apps use one file share?

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
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

MichelleBlum-2831 avatar image
0 Votes"
MichelleBlum-2831 answered

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.

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.