. The workaround could be (not sure if it works) to create a dummy custom resource that depends on the function and use something on its ID output to invoke the get; that would be really awful and I'm not sure it would work as probably also that ID would be known upfront.
t
tall-librarian-49374
08/06/2020, 8:13 AM
I’m surprised the
Tuple
approach doesn’t work. Are you tupling a property that is unknown before deployment?
n
numerous-artist-1705
08/06/2020, 8:41 AM
@tall-librarian-49374 I just did that and it worked, I was using function.Identity and also tried Urn in the tuple with no success, but I then switched to
Id
as that is surely provided by Azure and it worked. It's still a bit hacky and I'm not sure it will work in all cases, but it's good enough for now.
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.