【问题标题】:Publishing Azure Function with python packages使用 python 包发布 Azure 函数
【发布时间】:2019-09-25 20:50:48
【问题描述】:

我在从本地系统发布 Azure 函数方面需要帮助。该函数使用应用服务计划并具有 python 代码。

我在 python 中使用过使用消费计划的 azure 函数。我能够使用

从我的本地机器上发布代码

func azure functionapp publish app_name --build remote

但是当我使用应用服务计划创建新的函数应用时,此命令不会发布应用。

这是我运行发布命令后得到的输出

Getting site publishing info...
Updating Application Settings for Remote build...
Creating archive for current directory...
Perform remote build for functions project (--build remote).
Deleting the old .python_packages directory
Uploading 288.84 KB [#############################################################################]
Remote build in progress, please wait........done
Remote build succeeded!

这是构建但未发布。

谢谢

【问题讨论】:

  • 我使用应用服务计划将本地数据发布到函数应用。看起来没什么不正常的。

标签: python azure azure-functions


【解决方案1】:

事情对我有利,

1.使用应用服务计划创建函数应用。

2.创建本地函数项目。

3.创建一个新函数。

4.将 Function App 项目部署到 Azure。

PS:

我猜你需要从 ResourceGroup 重新进入 Function 应用才能查看。也许它只需要刷新。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多