Bicep error code - BCP071
This error occurs when a function is given an incorrect number of arguments. For a list of system defined functions, see Bicep functions. To define you own functions, see User-defined functions.
Error description
Expected <arugment-count>, but got <argument-count>.
Solution
Provide the correct number of arguments.
Examples
The following example raises the error because split()
expects two arguments, but three arguments were provided:
var tooManyArgs = split('a,b', ',', '?')
You can fix the error by removing the extra argument:
var tooManyArgs = split('a,b', ',', '?')
Next steps
For more information about Bicep error and warning codes, see Bicep core diagnostics.