Skip to content
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

Issue with deployment() function documentation #47

Open
jeffpatton1971 opened this issue Jun 15, 2018 · 2 comments
Open

Issue with deployment() function documentation #47

jeffpatton1971 opened this issue Jun 15, 2018 · 2 comments

Comments

@jeffpatton1971
Copy link

Visual studio flags this syntax as incorrect

uri(deployment().properties.templateLink.uri

I'm unclear what's wrong with it, as I have lifted it directly from the site above. There seems to be no valid way, at least from the perspective of VisualStudio to correctly leverage this function.

uri(deployment().templateLink

According to VisualStudio the above is 100% correct, but the error returned from the deployment is that templateLink is not valid, only name and properties are valid. Yet, NEITHER of those two things show up when I attempt to use them. When I put them in manually it shows me the red wavy that means it's wrong.

It's difficult to leverage some of these when I'm unable to fully understand why the provided MS examples don't work. Can we get a full breakdown of all available properties for all functions in the documentation please?

@tfitzmac
Copy link
Contributor

@jeffpatton1971 - have you looked at the template functions documentation. Here is the deployment function.

Visual Studio does occasionally flag some syntax as incorrect even though the syntax is fine. This happens when VS has troubles resolving the schema. Deployment() is particularly difficult because the properties vary based on how the template was specified.

@jeffpatton1971
Copy link
Author

Tom,

So, yea, I read that, and I get the complexity there, but this came up as it relates to that property iteration doc that I told you about. The code as written simply didn't work, so perhaps some more detailed examples of how it works in different scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants