Curious what you mean by "inside the automation api"? How are you invoking your program? Can you give us a code sample?
red-match-15116
05/01/2021, 10:39 PM
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.