Does anybody know why when we create a AzureCLIScr...
# azure
w
Does anybody know why when we create a AzureCLIScript using Pulumi and we have a script that has a scriptContent with the following “az account show” but when we run pulumi up we get a error saying “please run az login to set up the account” This error does not make any sense for two reasons 1. when I do az account show, I am logged in 2. We have other scripts in our Pulumi stack that add to storage that works fine.
m
I always have an identity assigned to the AzureCLIScript
And never saw this, but then I did not run an account command.
Maybe a missing role?
w
thats what we are thinking, issues with how the pulumi CLI is provisioned access?
m
the AzureCLIScript runs in Azure directly
w
how you do the identity cause looking at your example https://github.com/dirien/quick-bites/blob/55ff454ebc1924679a0e5b120c4ee762a9f6f71a/pulumi-azure-logic-apps/main.go#L24 you dont send in anything related to identity?
m
Yeah, because i use the S3 credentials here
I have a different example, where I use an identiy
Copy code
Identity: resources.ManagedServiceIdentityArgs{
				Type:                   pulumi.String(resources.ManagedServiceIdentityTypeUserAssigned),
				UserAssignedIdentities: scriptUserIdentityMapOutput,
			},
w
ahhhhh