【问题标题】:Azure Devops release pipeline unauthorized for some projectsAzure Devops 为某些项目发布未经授权的管道
【发布时间】:2019-09-04 08:39:11
【问题描述】:

我正在尝试使用 Azure 发布管道在 1 个解决方案中发布多个项目

它们都连接到同一个 Azure 订阅,但有些确实部署到给定的应用服务,而另一些则出现未经授权的错误。

我已经研究过了,我读到将 website_webdeploy_use_scm 添加到应用服务应该有助于解决未经授权的错误,但这对我没有帮助。

我还能看什么?我通过 Azure Devops 连接,所以我只是从它自动从 Azure 收集的列表中选择了订阅,因为我使用与 Azure 门户相同的登录名登录

完整的错误是:

 Connected to the remote computer ("xxxx.azurewebsites.windows.net") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.
Error: The remote server returned an error: (401) Unauthorized.

【问题讨论】:

    标签: azure azure-devops azure-pipelines azure-pipelines-release-pipeline azure-deployment


    【解决方案1】:

    根据错误,我建议您检查服务主体权限。它可能缺乏管理这些 web 应用程序所需的权限。

    【讨论】:

    • 嗨,它自己修复了奇怪的病添加答案
    【解决方案2】:

    因此,在 Azure 门户中刷新发布配置文件并再次尝试后,它会自行修复,所以我不确定这是否导致它,但它起作用了!

    另一个解决方法是删除插槽并重新生成

    【讨论】:

    • 您可以将此答案标记为已解决,因此其他 SO 用户将能够看到该解决方案是否有效-)
    猜你喜欢
    • 2021-12-31
    • 1970-01-01
    • 2020-06-03
    • 1970-01-01
    • 1970-01-01
    • 2021-06-24
    • 1970-01-01
    • 1970-01-01
    • 2019-07-17
    相关资源
    最近更新 更多