簡體   English   中英

創建Azure功能應用程序時出錯

[英]Error when creating Azure function App

我正在按照本教程中的步驟自動創建圖像縮略圖

我通過運行以下代碼(替換所有相關值)來創建函數應用程序:

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

在此步驟之后的任何階段,如果我在門戶中查看功能應用程序,都會收到以下錯誤,並且找不到原因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. 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.

該問題似乎與以下方面有關: https : //github.com/Azure/azure-webjobs-sdk-script/issues/2072

如果您使用的是Website_ContentShare設置(這意味着使用相同的存儲帳戶),則可能會遇到此問題。

轉到https://.scm.azurewebsites.net/DebugConsole進入數據->函數刪除secret文件夾如果不起作用:

在azure門戶中瀏覽至您的功能應用程序的存儲帳戶,進入容器-> azure-webjobs-secrets刪除具有您的功能應用程序名稱的容器,例如此屏幕快照中帶圓圈的條目: 在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM