[Feature Request] Linter rule to enforce consistent API version across codebase #14645
Labels
enhancement
New feature or request
Needs: Upvote
This issue requires more votes to be considered
story: linter rules
Is your feature request related to a problem? Please describe.
Currently, Bicep requires hard-coding the API version, i.e. specifying it explicitly next to each parent resource. It must be a literal string, it doesn't support a variable, e.g.:
This may easily lead to an inconsistency between API versions of the same resource type across different Bicep files. Moreover, nothing prevents using multiple API versions within the same file.
Note, this is not the case in regular ARM template: it supports using a variable/parameter, which may come from a single location:
Describe the solution you'd like
In the leu of a solution for #10683 and an improvement towards #622, I propose a linter rule which would:
The text was updated successfully, but these errors were encountered: