-
Notifications
You must be signed in to change notification settings - Fork 760
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
Improve access to nested properties of a resource defined in the template #3166
Comments
(At least) one problem is the swagger specifies properties that will be returned on GET that, in practice, are not actually returned. One debugging step I would try next is emitting the entire |
I've raised #3169 for this. |
Side question: is there any easier / better way to do this? (To use with "existing")
If I have a resource ID already, it feels weird that I need to manually pull out the name again |
@alex-frankel
|
Right, so the
We don't have a good way to turn an arbitrary resource ID into an |
how does this happen? :) do you have somebody to reach out to? |
Networking team is aware of the issue, I'll update this if/when I hear back from them. |
Is your feature request related to a problem? Please describe.
Let me start by saying that I believe the problem - and its workaround - is a limitation of ARM engine but nevertheless Bicep should (and I think would already) be able to help the user here.
What I'm trying to do is basically to get to a nested property of a resource which I define in my bicep template:
However, this does not work: It compiles fine but at deployment time you'll get
Interestingly, though, bicep code completion helped me to create that entire statement in the first place :) So from the user experience, you actually expect this to work: Bicep Intellisense helps you write that code and compiles it, why should it not work? ;)
Next thing I tried was
This, however doesn't even let you build:
So the way I found to work around this is using a module (i.e. a nested template). As you can see below, the module really doesn't do much so it would be great if we could somehow offer a more direct way through bicep:
The module code is:
Describe the solution you'd like
Since overall the workaround with the module works, it would be great if bicep would provide a way to remove the need for all this
The text was updated successfully, but these errors were encountered: