【发布时间】:2015-12-22 10:03:04
【问题描述】:
我通过这个链接Create a Scheduled Azure WebJob with PowerShell使用以下命令通过powershell创建了一个azure webjob
在提到的 webapp 中成功创建了 Webjob,但是当我尝试启动 web 作业时,抛出了以下异常
System.AggregateException:一个或多个错误 发生Microsoft.WindowsAzure.Storage.StorageException:远程 服务器返回错误:(403)禁止。 System.Net.WebException: 远程服务器返回错误:(403) Forbidden。
Microsoft.WindowsAzure.Storage.Shared.Protocol.HttpResponseParsers.ProcessExpectedStatusCodeNoException[T](HttpStatusCode 预期状态代码,HttpStatusCode 实际状态代码,T retVal, StorageCommandBase`1 cmd, Exception ex)
我在 webjob 中访问了一个存储帐户,当我通过 Visual Studio 部署时它运行良好,只有在使用 Powershell cmdlet 时才会出现问题。
【问题讨论】:
标签: powershell azure azure-storage azure-blob-storage azure-webjobs