Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See/Change underlying storage of Azure function app

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.

like image 293
Henrik Gering Avatar asked Jan 29 '20 10:01

Henrik Gering


People also ask

How do you check which storage account Azure function is using?

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.

Where are Azure functions stored?

[! 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.


2 Answers

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

enter image description here

like image 162
Sajeetharan Avatar answered Oct 16 '22 09:10

Sajeetharan


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.

like image 44
kittyhawk Avatar answered Oct 16 '22 10:10

kittyhawk