-
Notifications
You must be signed in to change notification settings - Fork 773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support type aware names across Variables Outputs Parameters Resources #1389
Comments
We made a conscious decision not to allow this - reason being is you tradeoff terseness/readability to allow for this flexibility. Meaning you end up seeing Can you provide some examples where this is causing issues for you today? It's possible there are cases that we haven't considered (like with |
Closing for now, but feel free to re-open if there are scenarios for this that you'd like to share |
Sorry for the delay, I've come back to this 3 times and some machine reboots in between had lost my comments. I don't disagree that if it was enforced as a default part of the language you could easily make it less readable to some using the language & would most likely add some additional developer friction of However for the flipside it can make it more easily readable for a number of your intended audience, because seeing If you were to add this to the language with additional editor tooling to easily switch on / off the use of I personally find that when speed reading an ARM template that I understand it much quicker because of some of its verboseness especially for |
Is your feature request related to a problem? Please describe.
One of the issues right now that is an issue that you cannot have a variable, outputs, parameter, resources to have the same name
Describe the solution you'd like
Ideally in bicep we should allow the following
this should build a working arm template something like the below (though ideally would negate the need for the type prefix)
or better yet just the below
This would help in flexibility in more advanced needs and should be an opt-in type experience for those that wish to use it (i.e. bicep conversion should automagically handle this for you whether or not you choose to use var.common/param.common/resource.common)
As a side issue it would be great if in ARM you could also similarly replace code like this
"[reference('resource_common').outputs.name]"
which works without needing to fully provide a resource type (by smart implicit referencing) with"[resource('common').name]"
The text was updated successfully, but these errors were encountered: