2017-10-28 98 views
0

我有一個邏輯應用程序,這調用了幾個functionapps。 這工作wonderfull,但突然我邏輯應用程序調用函數時出現錯誤。錯誤是:從邏輯應用程序調用Azure功能會拋出「運行時密鑰存儲在blob存儲上,此API不支持此配置。」

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

我們沒有重新生成密鑰和密鑰是有效的,因爲我們可以用郵遞員執行網絡掛接函數。

但是,當我isnpect活動日誌我的listkeys行動得到了以下錯誤:

{ 
    "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()" 
} 

有沒有辦法來改變密鑰的存儲?爲什麼我突然間沒有任何改變這個信息從一分鐘到另一分鐘?

回答

0

我解決了我的問題。

它發現Appsetting是這方面的錯誤指標。

當您將Appsetting「AzureWebJobsSecretStorageType」設置爲「blob」時,您將得到上述錯誤!

刪除此設置爲我解決了這個問題!

+0

當您啓用插槽時,可能已設置。請注意,沒有這個插槽將無法正常工作。底線是這些插槽在邏輯應用程序中播放不好。事實上,門戶網站明確表示:「啓用插槽(預覽)時,邏輯應用程序與功能的集成不起作用。 選擇此預覽功能將重置所有預先存在的祕密。功能祕密可在」管理「節點爲每個功能。*「 –

+0

嗯謝謝你的這個信息,這是有道理的 – Sascha

相關問題