【发布时间】: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