azure - 触发计时器从powershell触发Azure功能

标签 azure powershell azure-functions azure-powershell

我正在实现一个用于集成和性能测试的自动化脚本(Powershell),其中我需要触发基于计时器的azure函数。有没有办法从Powershell触发功能?

最佳答案

  • 定时器触发函数是非 Http 触发函数,可让您 根据 CORN 表达式按计划运行函数。

  • 您可以通过管理 API 按需触发它,如以下所示 below doc

使用以下脚本,您可以从远程 PowerShell 触发 HTTP 函数

$YourURI = 'FunctionUrl'
 Invoke-RestMethod -Method Get -Uri "$($YourURI)&name=<username>!"

这是上述脚本的示例响应 enter image description here

关于azure - 触发计时器从powershell触发Azure功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68706980/

相关文章:

azure - Azure Service Fabric 如何支持多区域以实现全状态服务?

angular - 在 Linux Web 应用程序上的 Azure 中运行 Angular

Azure 应用服务 - 实例与计划的 CPU 百分比

python - 是否可以将 .py 和 .ps1 脚本合并到 .exe 中?

powershell - 创建 PowerShell Collections.Generic.IEnumerable[string] 错误

azure - 如何在 Azure 中查看 Azure Function 主机启动时间?

Azure 流量管理器 SSL 设置(非经典)

azure - 如何正确使用List的ForEach()语句?

c# - 如何从 Azure Cloud Function 引用 "Portable".NET 程序集?

Azure函数: Get full request URL including query string in a HTTP Trigger function