Shi*_*uel 8 azure azure-functions azure-functions-runtime
我通过visual studio发布了Azure Function.现在,我想删除已发布的Azure功能,并禁用要删除的按钮.有没有办法删除从VS发布的azure函数?
在我们从VS发布代码之后,Azure门户将函数设置为只读,以防止我们在门户中编辑预编译资产.
如果我们使用web部署(没有检查Run from package file),
这有两个选择:
直接在门户中删除所有功能.在门户网站中,然后停止Function app Platform features> App Service Editor,删除除host.json之外的所有内容.
注意:我曾经提供了一个似是而非的解决方案 - Platform features> Function app settings,更改Function app edit mode为Read/Write,然后我们可以单击删除按钮.通过这种方式,我们可以删除特定的功能,但实际上我们没有删除可能累积并导致麻烦的预编译的dll.
下次发布新功能时删除所有旧功能.在发布面板上,单击Manage Profile Settings并选中Remove additional files at destination.
如果我们Run from package file在发布时已经检查过,那么这些方法都不会起作用.除了再次发布,我们可以转到Platform features> Application settings,WEBSITE_RUN_FROM_PACKAGE在应用程序设置部分删除,功能应用程序将变为空.有关详细信息,请参阅Run from package的声明.
使用这种方法,文件也会在静默中累积,但不会导致新功能出错.要删除旧文件,Platform features> Advanced tools (Kudu)> Debug console(CMD)并导航到d:\家\ DATA\SitePackages删除拉链未使用.
| 归档时间: |
|
| 查看次数: |
2681 次 |
| 最近记录: |