Whenever I create a new Azure function app in the Azure, I select a storage account for it to use.
When the app is created, how do I see/change the storage account?
I have tried to poke around in the portal and have not been able to see that where I can configure this.
Start by looking up your storage account name in your application settings. Either AzureWebJobsStorage or WEBSITE_CONTENTAZUREFILECONNECTIONSTRING contains the name of your storage account as part of a connection string. For more information, see App settings reference for Azure Functions.
[! IMPORTANT] When using the Consumption/Premium hosting plan, your function code and binding configuration files are stored in Azure Files in the main storage account.
Once it is created you cannot modify the storage account, But you should be able to see the storage account and the related files on the Azure portal
You can see the settings of the configured Storage Account by navigating to Function App Settings -> Manage Application Settings ->
in the settings you can see the Key AzureWebJobsStorage
If you want to change the storage account, you just have to update the configuration to point to the access keys of the different storage account. Depending on the function this may be the AzureWebJobsStorage and WEBSITE_CONTENTAZUREFILECONNECTIONSTRING strings. Then, redeploy the function app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With