https://pulumi.com logo
Title
t

tall-scientist-89115

05/01/2021, 9:31 PM
Can you not use
azure.keyvault.getSecret
inside the automation api? I keep getting
Error: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
r

red-match-15116

05/01/2021, 10:05 PM
Curious what you mean by "inside the automation api"? How are you invoking your program? Can you give us a code sample?
I think what you mean is that you want to use that function outside of the context of the pulumi program. And yeah, you can’t use a pulumi provider function outside of the pulumi program. If you need to get your secret outside of the context of the program you’ll either need to export it from your stack as an output or use the azure SDK to access it
t

tall-scientist-89115

05/01/2021, 10:42 PM
you're right it was inside the run block, not the inline function.
makes perfect sense. sleep good
😛artypus-8bit: 1
👍🏽 1