https://pulumi.com logo
#azure
Title
# azure
b

bored-airplane-19518

07/04/2023, 7:10 PM
Has anyone started to get errors running
az
commands using the Pulumi Command resource? We've just started to see the following error:
Copy code
error: ERROR: Please run 'az login' to setup account.
    error: exit status 1
We're using a service principal to authenticate. We've ruled out expired credentials as other resources are being deployed fine (native resources) and we've tried with a new client secret. but no dice 😞
m

many-telephone-49025

07/06/2023, 6:36 PM
Are you running this locally or on a CI/CD system?
m

microscopic-furniture-52860

07/06/2023, 8:13 PM
We see the error when running in GitHub Actions using
pulumi/actions@v4
on
ubuntu-latest
. It works fine when running locally using the same SP credentials, and had worked previously using
pulumi/actions@v3
although it has been a while since we needed to run a command. Will see if we can downgrade and try with v3 to rule that change out.
b

bored-airplane-19518

07/07/2023, 9:52 AM
For some more info on this. We tested out by downgrading to
pulumi/actions@v3
, but experienced the same issue. We updated to the latest Pulumi CLI version locally (3.74.0) to rule that out and it works fine. Something very strange happening in the context of GH runners.
4 Views