-
Notifications
You must be signed in to change notification settings - Fork 758
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
provide warning if there is a segment mismatch between type and name #314
Comments
Hopefully once #272 is done, this becomes less of a concern |
I think this is technically out of scope (no pun intended) for the scope spec, but definitely something I'm interested in. Doing validation on a user-supplied string becomes tricky as soon as expressions become involved, and forcing users to format their own segmented strings feels unnecessarily burdensome. The syntax I'm thinking about is something like the following:
|
I don't know if I would introduce a new/non-arm way... scope makes some sense but I don't know if that's the way the platform will treat it (it might, we haven't done the work yet). The parent property might be challenging because I may have more than one generation that I need to specify. My guess is that the common pattern will be parameters or literals separated by slashes. Anything else would be more work. Catching that case would be easy - whether we need to catch any/all cases is probably worth more discussion. |
What does "non-arm" way mean here? What if we support this new property in the IL? |
Fixed with #1800 |
Consider:
resource configScript 'Microsoft.Compute/virtualMachies/extensions@2020-06-01' = {
name: 'configScript'
location: location
Where we have a child resource, but a single segment in the name - we should be able to flag that at dev-time (certainly compile time)
The text was updated successfully, but these errors were encountered: