【问题标题】:How to call Azure function when Azure continuous deployment completes a deploymentAzure持续部署完成部署时如何调用Azure函数
【发布时间】:2017-10-23 10:49:34
【问题描述】:

我已关注此document 以进行 Azure 功能持续部署。我已成功设置 github Account 和 Azure 功能以进行持续部署。

现在我想将 Git-hub 文件复制到 WASB 存储。由于 Azure 功能持续部署后,我在 Kudu 控制台中有 github 文件,因此我有一个想法,将 git-hub 文件从 D:\home\site\repository 复制到 WASB 存储,而不是从 Github 复制文件。

我已经编写了 Azure 函数来将文件从 D:\home\site\repository 复制到 WASB。现在我想调用这个 Azure 函数。

在 Azure Function 持续部署完成部署后,如何调用此 Azure Function?因为一旦 Azure 功能持续部署完成,Git-hub 文件就会在 D:\home\site\repository 路径中更新。

【问题讨论】:

    标签: git azure azure-functions continuous-deployment azure-blob-storage


    【解决方案1】:

    有几个选项需要考虑。最简单的是提供部署后脚本/操作。见https://github.com/projectkudu/kudu/wiki/Post-Deployment-Action-Hooks

    其他选项是提供和自定义部署脚本,以便在脚本结束时进行您想要的任何后期操作。见https://github.com/projectkudu/kudu/wiki/Customizing-deployments。另外,可以考虑WebHook;见https://github.com/projectkudu/kudu/wiki/Web-hooks

    【讨论】:

    • 如何在部署后操作中从 .cmd 文件调用 Azure 函数?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-24
    • 1970-01-01
    • 2013-04-17
    • 2018-06-16
    • 1970-01-01
    相关资源
    最近更新 更多