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
During last community monthly call(link TBD) there was feedback request for new existing key word features: https://aka.ms/bicepREC
I could not find any new discussion about this and therefore I'm starting a new.
Current documentation states following: If you attempt to reference a resource that doesn't exist, you get the NotFound error and your deployment fails. Check the name and scope of the resource you're trying to reference.
I've seen users multiple times abusing existing keyword with following explanation: "existing returns null if resources does not exists". Even some AVM modules are using this pattern.
Does proposed new annotation or existing? keyword changeset include changes for current existing logic?
If current existing logic is not changed, will there be intellisense suggestion that warns user if they are checking if resource defined with existing is checked for being null?
TBH this should be added as soon as possible to avoid issues caused by usage of undocumented behaviour.
Multiple users had concerns with magical single character change. Would this kind of intellisense rule help them to use correct syntax?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
During last community monthly call(link TBD) there was feedback request for new existing key word features: https://aka.ms/bicepREC
I could not find any new discussion about this and therefore I'm starting a new.
Current documentation states following:
If you attempt to reference a resource that doesn't exist, you get the NotFound error and your deployment fails. Check the name and scope of the resource you're trying to reference.
I've seen users multiple times abusing existing keyword with following explanation: "existing returns null if resources does not exists". Even some AVM modules are using this pattern.
Does proposed new annotation or
existing?
keyword changeset include changes for currentexisting
logic?If current
existing
logic is not changed, will there be intellisense suggestion that warns user if they are checking if resource defined withexisting
is checked for beingnull
?TBH this should be added as soon as possible to avoid issues caused by usage of undocumented behaviour.
Multiple users had concerns with magical single character change. Would this kind of intellisense rule help them to use correct syntax?
Beta Was this translation helpful? Give feedback.
All reactions