question

SERGIOM-2872 avatar image
0 Votes"
SERGIOM-2872 asked SERGIOM-2872 answered

azure function error

Storage is not configured correctly. Functions dimensions ....141932-erroreazure.png

What can I do?
Regards
Sergio

azure-functions
erroreazure.png (15.5 KiB)
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.

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT commented

@SERGIOM-2872 Please verify if AzureWebJobsStorage and WEBSITE_CONTENTAZUREFILECONNECTIONSTRING application setting is correctly configured as your azure storage account connection string. If you are still facing the issue then please respond to my private comment to assist you further.

· 4
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.

Hi, thanks for the answer.
I didn't find AzureWebJobsStorage in function setting. I have to write a key, I suppose.
I send a screenshot with Storage configuration and function configuration.142004-forumazure.png
Best regard
Sergio


0 Votes 0 ·
forumazure.png (114.8 KiB)

@SERGIOM-2872 Yes, you need to add a New Application Setting with the key as AzureWebJobsStorage and Value as the primary/secondary connection string of your storage account. Please add another key with WEBSITE_CONTENTAZUREFILECONNECTIONSTRING and value as primary/secondary storage connection string.

0 Votes 0 ·

Hi,
AzureWebJobsStorage is OK, some problems with WEBSITE_CONTENTAZUREFILECONNECTIONSTRING, probably because WEBSITE_CONTENTSHARE is not present.
I found this
Required application settings
Required:
AzureWebJobsStorage
Required for Premium plan functions:
WEBSITE_CONTENTAZUREFILECONNECTIONSTRING
WEBSITE_CONTENTSHARE

I have a free subscription.
Anyway I don't know if I can do something else to create a simple function with my subsciption. In video tutorial on the web it seems very simple.

Sergio

0 Votes 0 ·

@SERGIOM-2872 I have looked into your function configuration and I can see WEBSITE_CONTENTSHARE and WEBSITE_CONTENTAZUREFILECONNECTIONSTRING must be configured for Windows Consumption. Please configure these two app settings according to File Shares in your Azure Storage Account, because function apps on Windows Consumption require a file system to run. More information: https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings#website_contentazurefileconnectionstring

0 Votes 0 ·
SERGIOM-2872 avatar image
0 Votes"
SERGIOM-2872 answered

Hi,
I created a new storage account and I created a new function with a connection to new storage. In attach a screenshoot. The function is running but nothing else. 'storage not configured ..."142102-storageaccount.png



storageaccount.png (78.4 KiB)
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.