Hi! Does anyone managed to log in to pulumi Azure ...
# getting-started
s
Hi! Does anyone managed to log in to pulumi Azure Storage backend using Azure DevOps task: https://github.com/pulumi/pulumi-az-pipelines-task? Can't figure out how to pass secrets.
I am getting: ##[error]Couldn't determine which login method to use. This task extension supports Pulumi Service backend and self-managed backends. Learn more at https://www.pulumi.com/docs/intro/concepts/state. despite setting:
Copy code
createPrComment: true
env:
  AZURE_STORAGE_CONTAINER: "pulumi-state-container"
which according to this check: https://github.com/pulumi/pulumi-az-pipelines-task/blob/fa8d205277902075c4fd09547729e5e56965af83/buildAndReleaseTask/pulumi.ts#L310 should not happen 😄
t
cant help you with the task, but you can login in pipeline by setting these env variables AZURE_STORAGE_ACCOUNT AZURE_STORAGE_KEY and running
pulumi login azblob://${container}?storage_account=${storageAccount}
s
but then this Task will not run, i wanted to check out addCommentToPR feature
thanks anyway! 🙂