My YAML is
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
Where is the subscription id
When I run the build the error is
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.
[Update]
It should be the Resource authorization issue. Please see Resources and try the workaround (
Troubleshooting authorization for a YAML pipeline
) to fix the issue.Some resources must be authorized before they can be used. This ensures that only users with sufficient permissions can access potentially sensitive resources such as service connections.