问题描述
我正在尝试通过Powershell发布Webjob。
我关注了以下文章
https://github.com/projectkudu/kudu/wiki/Deploying-a-WebJob-using-PowerShell-ARM-Cmdlets
我在Azure Release Def中将脚本与Azure Powershell任务一起使用。
我遇到错误
缺少Content-disposition标头。
在下面的脚本
Invoke-RestMethod -Uri $apiUrl -Headers $Header -Method put -InFile "<Complete path of the file>\
<filename>.zip" -ContentType 'application/zip'
我已经在标题中添加了Content-disposition
,如下所示,但仍然出现错误。
$Header = @{
'Content-disposition'='attachment; attachment; filename=copy.zip'
'Authorization'=$accesstoken
}
解决方法。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)