This message was deleted.
# azure
s
This message was deleted.
m
Anyone knows how to solve that ? @tall-librarian-49374?
p
@millions-journalist-34868 you typically do this using Invoke calls.
Here’s one example from my code (string values obscured)
This example gets a reference to an existing KeyVault instance, that lives in a resource group in another subscription.
Then you can simply use
keyVault.Id
to refer to this vault, as an input, when creating other resources.
If your other resource is in the same subscription as your deployment is targeting, you can skip the
InvokeOptions
argument and the
Provider
object.
Hope that helps.
m
That's awesome. Exatly what I was looking for. I will try that, thanks @powerful-football-81694!
p
No problem