This message was deleted.
# azure
s
This message was deleted.
a
I'm not sure if this applies to you, but as I understand it, it is not possible to try-catch these errors today? At-least I have had the same issue and had to solve another way. https://github.com/pulumi/pulumi/issues/3364
c
You understood correctly. I am trying to validate if a resource exists via get() function, but an error is thrown instead of being "handled" in the try-catch block. I see from the URL you have shared that there seem to be a lot more people being affected by this behavior. Were you able to find a workaround for this?
a
No, sorry. Ended up solving it another way, this was a more "nice to have" req so didn't dig deeper. (made sure resource is created in a stack run earlier, and if it hadn't been created when running the stack that assumes it is created = crash. Bit uglier but enough for the req we had)
👍 1
c
yeah, I ended up doing a similar workaround, but it is something that I need to improve so it doesn't happen on other scenarios 😄 Thank you for answering, though!
🎉 1