Duplicated string literals make the process of refactoring complex and error-prone, as any change would need to be propagated on all
occurrences.
Exceptions
The following are ignored:
- literals with fewer than 5 characters
- literals with only letters, numbers, underscores, hyphens and periods
-
apiVersion property of a resource (see rule S6874)
-
type in nested templates
-
$schema property
- version numbers like
1.0.0 or 1-0-0
- escaped template expressions starting with
[[, like [[variables('variableName')]