【Azure 應用服務】Function App中的函式(Functions)刪除問題
阿新 • • 發佈:2021-12-17
問題描述
Function App 中的函式如何刪除問題
問題分析
1)在Function App的門戶上,點選“Delete”進行刪除
2) 進入Function App的高階管理頁面(Kudu站點:)進入到 Function的原始檔夾,刪除掉目標資料夾即可(如:TimerTrigger1)
但是,有一種情況下,從門戶或者是Kudu檔案管理視窗時無法刪除Function的。
本地直接釋出的Function App預設會配置為'Run from package' 模式執行。在門戶上會看見提示資訊:
"Your app is currently in read only mode because you are running from a package file. To make any changes update the content in your zip file and WEBSITE_RUN_FROM_PACKAGE app setting."
此時,需要回歸到在本地開發環境中,通過刪除Function對應的原始碼檔案(例如http_trigger1.cs)後,重新發布至Azure Function App 來更新。
參考資料
當在複雜的環境中面臨問題,格物之道需:濁而靜之徐清,安以動之徐生。 雲中,恰是如此!