2

I have a logic app, this calls several functionapps. this worked wonderfull, but suddently I got an error when the logic app calls the Function. The error was:

{
  "Message": "The 'code' query parameter provided in the HTTP request did not match the expected value."
}

We didn't regenerate the key and the keys are valid, because we can execute the webhook functions with postman.

But when I isnpect the activity logs I got on the listkeys action the following Error:

{
    "Message": "An error has occurred.",
    "ExceptionMessage": "Runtime keys are stored on blob storage. This API doesn't support this configuration.",
    "ExceptionType": "System.InvalidOperationException",
    "StackTrace": "   at Kudu.Core.Functions.FunctionManager.<GetKeyObjectFromFile>d__9`1.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Kudu.Core.Functions.FunctionManager.<GetFunctionSecretsAsync>d__12.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Kudu.Services.Functions.FunctionController.<GetSecrets>d__12.MoveNext()"
}

Is there a way to change the storage of the keys? Why I got suddently without any change this message from one minute to another?

1 Answer 1

2

I solved my Problem.

It figured out that a Appsetting was the error indicator for this.

When you set the Appsetting "AzureWebJobsSecretStorageType" to "blob" then you will get the error above!

Removing this setting solved this problem for me!

Sign up to request clarification or add additional context in comments.

1 Comment

This likely got set when you enabled slots. Note that slots won't work correctly without this. Bottom line is that slots don't play well with Logic Apps. In fact, portal makes that explicit: "Logic apps integration with Functions does not work when Slots(preview) is enabled. Opting into this preview feature will reset any pre-existing secrets. Function secrets can be found under the 'Manage' node for each function."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.