04/28/2023, 7:36 PM
Hello, I am using successfully getClientConfig (from @pulumi/azure-native/authorization) to retrieve the subscriptionId when running Pulumi locally. Now I am configuring GitHub Actions to use OIDC for login and although everything is running fine and the login is successful, the subscriptionId is now coming empty only on the workflow, probably related to the login difference. This is breaking some Id references. Is there any other way to refer to the subscriptionId and tenantId which works for both login patterns?
For now I am just creating a variable on the stack configuration, since I have one per environment but thinking if there is a more elegant way to do this.


04/28/2023, 10:17 PM
does it show up as an env var?
that's where the provider gets it, in this case I'd guess


05/08/2023, 6:09 PM
Yeah, it seems you are right. It gets it from the environment variables, but since we don't need a subscription environment, we lose the ability to retrieve it using the client config.