This message was deleted.
# general
s
This message was deleted.
q
What error are you getting? Did you add the PULUMI_ACCESS_TOKEN as an environment variable to you Azure CLI task? This works for me:
Copy code
- bash: |
    pulumi stack select $(stack) --cwd $(pulumiFolder)
    pulumi stack output -j --cwd $(pulumiFolder)
  env: 
    PULUMI_ACCESS_TOKEN: $(pulumi.access.token)
s
There is no pulumi access token as I'm using an azure blob container for the back end. If I had an access token the problem wouldn't exist because there'd be no confusion between the SP settings for running the script and settings for the connection to the container.
However I do have an answer - I can do a pulumi stack export to a file and since the export contains the outputs for the stack I can pull those out of the json without much effort (powershell is a wonderful thing at times) I'm potentially sorted
pulumi stack output still needs a --file option though
👍 1