为什么我可以发布单个Web作业,但不能发布带有Web作业列表的Web项目?

时间:2016-12-01 16:10:43

标签: azure azure-webjobs

我们有一个支持WebJobs的项目,我们用它来部署和安排WebJobs。我们的一些开发人员能够发布项目,但是在尝试这样做时我遇到了错误。发布本身成功,但最后我得到了一堆错误:

An error occurred while creating the WebJob schedule: ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.

我尝试使用发布为WebJob 命令自行发布WebJob,它运行得很好。我使用的发布配置文件也验证得很好。为什么它适用于一个而不适用于另一个?

1 个答案:

答案 0 :(得分:0)

我的帐户具有订阅的共同管理员权限,我可以成功将WebJobs-enabled project发布到Azure App服务(网站和webjob都运行正常)。 This thread讨论了类似的问题,我们发现没有共同管理员权限的帐户可能会导致此问题,因此请确保您的帐户是否具有共同管理员权限。