我的YAML是
pool:
vmImage: 'Ubuntu 16.04'
variables:
buildConfiguration: 'Release'
steps:
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'
- task: AzureRmWebAppDeployment@3
inputs:
azureSubscription: '<mysubscription>'
WebAppName: 'mylinuxapi'
Package: $(System.ArtifactsDirectory)/**/*.zip订阅id在哪里?
当我运行构建时,错误是
Job Job1:Step input azureSubscription references service connection
The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.

更新
我现在正在寻找如何添加一个新的服务终结点。

发布于 2018-10-02 06:51:05
这应该是资源授权问题。请查看资源并尝试解决方法(Troubleshooting authorization for a YAML pipeline)以解决此问题。
某些资源必须经过授权才能使用。这确保只有具有足够权限的用户才能访问可能敏感的资源,例如服务连接。
资源授权 保存管道时,资源授权检查新的和更新的资源。如果您没有授权一个或多个资源的权限,则保存管道将失败。 如果向现有的YAML管道添加新资源,Azure管道将获取更改,但可能无法授权资源。在使用下面的故障排除步骤授权资源之前,生成可能会失败。 YAML管道的疑难解答授权: 向管道中添加新的服务端点或其他资源时,必须对其进行授权才能工作。如果生成失败时出现有关资源授权的错误消息,请执行以下步骤:
https://stackoverflow.com/questions/52583903
复制相似问题