Hi Pulumi/ all - I am trying to setup a Yaml pipel...
# getting-started
Hi Pulumi/ all - I am trying to setup a Yaml pipeline in Azure DevOps (baby steps) to work towards including Pulumi in my pipeline. I can do the commands in my local powershell- however when I build my pipeline and come to this section of code: - task: AzureCLI@2       inputs:         azureSubscription: 'DigitalTech (*)         scriptType: 'ps'         scriptLocation: 'inlineScript'         inlineScript: |           pwd            pulumi whoami                      pulumi stack select H**/postcodelookupmvp/t**           pulumi up         workingDirectory: '$(System.DefaultWorkingDirectory)/pulumi' The pipeline fails. I added in "Pulumi whoami" and discovered that the pipeline is building under another persons account (who has now left the business and I cant give access to my stack). Any clues how to fix this ? Apologies if this is a BTEC question... its only day 2 of implementing Pulumi
You need to set a PULUMI_ACCESS_TOKEN environment variable for the Pulumi user you want executing the
pulumi up
. Note that there is a pulumi task extension for Azure DevOps that I would recommend using: https://www.pulumi.com/docs/guides/continuous-delivery/azure-devops/
I’m thinking that maybe the pipeline has the PULUMI_ACCESS_TOKEN already set but it is set to a token for a different user.
hey - thanks for your advice Mitch, checking out that guide now...