【Azure 应用服务】Function App中的函数(Functions)删除问题

发布时间:2022-06-28 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了【Azure 应用服务】Function App中的函数(Functions)删除问题脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

问题描述

Function App 中的函数如何删除问题

 

问题分析

1)在Function App的门户上,点击“Delete”进行删除

【Azure 应用服务】Function App中的函数(Functions)删除问题

2) 进入Function App的高级管理页面(Kudu站点:)进入到 Function的源文件夹,删除掉目标文件夹即可(如:TimerTrigger1)

【Azure 应用服务】Function App中的函数(Functions)删除问题

 

但是,有一种情况下,从门户或者是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."

【Azure 应用服务】Function App中的函数(Functions)删除问题

此时,需要回归到在本地开发环境中,通过删除Function对应的源代码文件(例如http_trigger1.cs)后,重新发布至Azure Function App 来更新。

 

参考资料

高级工具 (Kudu):https://docs.azure.cn/zh-cn/azure-functions/functions-how-to-use-azure-function-app-settings?tabs=portal#kudu

 

脚本宝典总结

以上是脚本宝典为你收集整理的【Azure 应用服务】Function App中的函数(Functions)删除问题全部内容,希望文章能够帮你解决【Azure 应用服务】Function App中的函数(Functions)删除问题所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: