I have an Azure Functions App running on a consumption plan. It was handed over to me without any app settings. I manually setup the app settings using the Microsoft documentation as follows:
{
"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
"value": "{id}",
"slotSetting": false
},
{
"name": "AzureWebJobsStorage",
"value": "DefaultEndpointsProtocol=https;AccountName={name};AccountKey={key}",
"slotSetting": false
},
{
"name": "FUNCTIONS_EXTENSION_VERSION",
"value": "~2",
"slotSetting": false
},
{
"name": "FUNCTIONS_WORKER_RUNTIME",
"value": "dotnet",
"slotSetting": false
},
{
"name": "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING",
"value": "DefaultEndpointsProtocol=https;AccountName={name};AccountKey={key}",
"slotSetting": false
},
{
"name": "WEBSITE_CONTENTSHARE",
"value": "{name of Functions App added to 32 chars}",
"slotSetting": false
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "10.14.1",
"slotSetting": false
},
{
"name": "WEBSITE_RUN_FROM_PACKAGE",
"value": "1",
"slotSetting": false
}
]
Where the connection strings both share the same Storage Account that is otherwise empty and not in use by any other application.
It however yields an error already when trying to view it from the portal. Removing the WEBSITE_CONTENTAZUREFILECONNECTIONSTRING, WEBSITE_CONTENTSHARE and AzureWebJobsStorage seem to make it run although no host keys are saved, but otherwise functions seem to trigger.
How do I properly setup the Functions App to use the Storage?
azurewebjobstorageis pointing to a storage account - Alex GordonFUNCTIONS_WORKER_RUNTIMEand set theWEBSITE_NODE_DEFAULT_VERSIONto8.11.1. Everything seems to work as intended now. You can add it as anwser - 404