https://pulumi.com logo
l

limited-rainbow-51650

09/10/2020, 3:13 PM
Struggling again to get a value unwrapped from an Output. I have an
Output<string>
coming from
StackReference.requireOutput(<key>)
. I now need the
string
value so I can pass it as one of the properties to
azure.network.getVirtualNetwork({ string, string })
. How can I do that?
l

little-cartoon-10569

09/10/2020, 8:22 PM
If the parameter is a
string
and not a
pulumi.Input<string>
then your best bet is to use
StackReference.requireOutputValue
and then either
await
or
then
.
4 Views