Skip to content
Discussion options

You must be logged in to vote

Hi @rebuildtech,
What I am really trying to accomplish is create a symbolic reference to an existing resource. What I have (as input to a module) is a full resource ID.
It's not currently possible to define an existing resource using a full resource ID. So, I am looking for a method to parse that into its component pieces, such as the subscription, resource group, and resource name.
The split function works, but because it relies on hardcoding the array index of each element, it feels brittle.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rebuildtech
Comment options

@SvenAelterman
Comment options

Answer selected by brwilkinson
@brwilkinson
Comment options

@gbonk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants