Only other parameters can be referenced in parameter default values #2946
-
I have search but cannot find out how to get this to work I am trying to get an IP from an already existing resource and then inject it into a param array that I then use to feed into a module. I am not sure if this is supported and may have to revert to hard coding these variables but thought it would be great if it does work. Please see below code with the error I get when in vscode
I have tried both using the Output variable or the pip.id inside a param but this will not work I receive the error This symbol cannot be referenced here. Only other parameters can be referenced in parameter default values. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is unfortunately not supported. If you're calling this from another module, your best option would be to pass the id in as a separate parameter:
|
Beta Was this translation helpful? Give feedback.
This is unfortunately not supported. If you're calling this from another module, your best option would be to pass the id in as a separate parameter: