You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Optional parameters that default to empty string cause the error below, even though an if condition would cause the resource not to be used:
The template reference 'existingSubnet' is not valid: could not find template resource or resource copy with this name
Additional context
I was getting this error when uses version 0.29.45. I upgraded to 0.31.34 and the error went away. Last week, I upgraded to 0.31.92 and the error has returned.
If I remove the thePE resource OR the type defintion then I don't get the error.
The text was updated successfully, but these errors were encountered:
chambersDon
changed the title
Empty string in resource name fails, eveb when the resourse will not be used.
Empty string in resource name fails, even when the resourse will not be used.
Nov 18, 2024
@chambersDon The fix in 0.31.34 had to be reverted but should be back for v0.32. There's some more context in the description of #15580 if you're curious.
Bicep version
Bicep CLI version 0.31.92 (b065093)
Describe the bug
Optional parameters that default to empty string cause the error below, even though an if condition would cause the resource not to be used:
The template reference 'existingSubnet' is not valid: could not find template resource or resource copy with this name
To Reproduce
run this bicep:
With version 0.31.92 you will get this error:
Additional context
I was getting this error when uses version 0.29.45. I upgraded to 0.31.34 and the error went away. Last week, I upgraded to 0.31.92 and the error has returned.
If I remove the thePE resource OR the type defintion then I don't get the error.
The text was updated successfully, but these errors were encountered: