触发 Web 作业 Powershell 部署脚本
Triggered Web Job Powershell Deployment script
我有一个 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'`
我需要相同类型的脚本来部署触发的网络作业。
请帮忙
要部署触发的网络作业,只需更改脚本中的 $apiUrl1
,如下所示。
$apiUrl1 = "https://$webAppName.scm.azurewebsites.net/api/triggeredwebjobs/MyWebJob"
我有一个 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'`
我需要相同类型的脚本来部署触发的网络作业。 请帮忙
要部署触发的网络作业,只需更改脚本中的 $apiUrl1
,如下所示。
$apiUrl1 = "https://$webAppName.scm.azurewebsites.net/api/triggeredwebjobs/MyWebJob"