我正在实现一个用于集成和性能测试的自动化脚本(Powershell),其中我需要触发基于计时器的azure函数。有没有办法从Powershell触发功能?
最佳答案
定时器触发函数是非 Http 触发函数,可让您 根据 CORN 表达式按计划运行函数。
您可以通过管理 API 按需触发它,如以下所示 below doc
使用以下脚本,您可以从远程 PowerShell 触发 HTTP 函数
$YourURI = 'FunctionUrl'
Invoke-RestMethod -Method Get -Uri "$($YourURI)&name=<username>!"
关于azure - 触发计时器从powershell触发Azure功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68706980/