Bicep error/warning code - BCP328

This error/warning occurs when you assign a value that is less than the allowable value.

Error/warning description

The provided value (which will always be less than or equal to <value>) is too small to assign to a target for which the minimum allowable value is <min-value>.

Solution

Assign a value that falls within the permitted range.

Examples

The following example raises the error because 0 is less than minimum allowable value:

@minValue(1)
@maxValue(12)
param month int = 0

You can fix the error by assigning a value within the permitted range:

@minValue(1)
@maxValue(12)
param month int = 1

Next steps

For more information about Bicep error and warning codes, see Bicep warnings and errors.