我有一个Powershell脚本来部署继续的webjob。如下所示
`$Header = @{
'Content-Disposition'='attachment; attachment; filename=Copy.zip'
'Authorization'=$accessToken}
$apiUrl1 = "https://$webAppName.scm.azurewebsites.net/api/continuouswebjobs/MyWebJob"
Invoke-RestMethod -Uri $apiUrl1 -Headers $Header -Method put -InFile "$zipFilesPath\MyWebJob.zip" -
ContentType 'application/zip'`
我需要相同类型的脚本来部署触发的网络作业。请帮助
要部署已触发的Web作业,只需如下更改脚本中的$apiUrl1
。
$apiUrl1 = "https://$webAppName.scm.azurewebsites.net/api/triggeredwebjobs/MyWebJob"