Error when creating Azure function App

956 Views Asked by At

I'm am following the steps here on this tutorial to automatically create image thumbnails

I get to the step to create the function app by running this code (replacing all relevant values):

az functionapp create --name <function_app> --storage-account <general_storage_account>  
\ --resource-group myResourceGroup --consumption-plan-location westcentralus

At any stage after this step, if I view the function app in the portal I receive the following error and am unable to find the cause The function runtime is unable to start. Please check the runtime logs for any errors or try again later. Microsoft.AspNetCore.DataProtection: The payload was invalid.

1

There are 1 best solutions below

0
On

The issue seems to be related to: https://github.com/Azure/azure-webjobs-sdk-script/issues/2072

If in case you are using Website_ContentShare setting (which means using the same storage account) you might face this issue.

Go to https://.scm.azurewebsites.net/DebugConsole Go into data -> functions Delete the secrets folder If that doesn't work:

browse to the storage account for your function app into the azure portal, go into containers -> azure-webjobs-secrets delete the container with your function app name e.g. the circled entry in this screenshot: enter image description here