I don't know much about Azure provider in pulumi, but usually an output of the resource can be provided somewhere else as an input. Sometimes it is not possible when resource provider finishes it's
create
before a value is retrieved, but I consider it a bug.
astonishing-energy-53370
03/28/2022, 10:53 AM
You can do a lambda function with the reference of a function that uses rest API to retrieve the output yourself
👍 1
b
billowy-army-68599
03/28/2022, 3:07 PM
@astonishing-notebook-93377 what resource is this? do you have a small repro?
a
astonishing-notebook-93377
03/28/2022, 3:50 PM
Its been Azure Public IP with dynamic allocation, I thought pulumi will wait till the resource is allocated and then grab the resource and its IP, but seems not. If i use a static assigned IP on that resource, it works well. So i think it will just go with static
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.