https://pulumi.com logo
#typescript
Title
# typescript
o

orange-kite-80991

12/11/2021, 2:51 PM
I would like to pull my Azure access params like azure-native:tenantId from the Environment. To be more explicit, I want to pass them in from my Github Action. Currently these params are in Pulumi Config and the azure-native library implicitly loads them:
Copy code
const az_config = new pulumi.Config('azure-native')
What do I need to add to pull the Azure credentials from the Environment?
q

quiet-wolf-18467

12/11/2021, 5:35 PM
You can manually create a Provider and use
process.env
to pass in the required credentials https://www.pulumi.com/registry/packages/azure-native/api-docs/provider/
I believe you can also use
az
command to login before running Pulumi commands
o

orange-kite-80991

12/11/2021, 7:45 PM
Thanks guys. The Provider docs is what I needed. Yes, I could use az login but that's just an example of the things I need from github.