For Function app Premium plan or Consumption plan running on windows, when you create function app it requires you to create a personal storage account and your application codes will be deployed to your personal storage account instead of platform file server built-in storage account.
Example:
When you create Function app dedicated plan running on windows, all of your application contents will be stored on file server which has been mounted to built-in storage account.
Example:
Even though Dedicated plan function apps mounting to personal storage accounts are mentioned “not supported” by below documentation , but still some of the users are mounting Dedicated plan function apps to personal storage account by adding below two connections. (it’s still allowed)
WEBSITE_CONTENTAZUREFILECONNECTIONSTRING
Only used when deploying to a Premium plan or to a Consumption plan running on Windows. Not supported for Consumptions plans running Linux. Changing or removing this setting may cause your function app to not start.
WEBSITE_CONTENTSHARE
Only used when deploying to a Premium plan or to a Consumption plan running on Windows. Not supported for Consumptions plans running Linux. Changing or removing this setting may cause your function app to not start.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings#website_contentshare
For example:
I added two values to my functionapp(Dedicated Plan) in order to mount to my personal storage account.
Then functionapp mounted to my personal storage account.
In case environment is quite simple, we can create new function app to resolve the issue.
But If we are aware of this is not supported environment and wants to recover back to platform file server built-in storage instead of recreating new function app. How we change back ?
We can use above way to change back to the platform file server built-in storage.
Thanks for reading this post. I hope you enjoyed it. Please feel free to write your comments and views about the same over here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.